
24 Feb
2014
24 Feb
'14
2:46 p.m.
I'm getting a segfault on this expression entered into ghci: GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> fromIntegral (floor $ sqrt (-123.123)) == -123.123 Segmentation fault: 11 I'm running the 32-bit version of the Haskell Platform on OSX. Is this a bug? a problem with my setup? "Just don't take square roots of negative numbers - you should know better!"???