Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

wut

Name: Anonymous 2013-12-17 15:06

# sqrt -1;;
Error: This expression has type float -> float
       but an expression was expected of type int

Name: Anonymous 2013-12-18 13:44

$ 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.
ghci> :m + Data.Complex
ghci> sqrt (1 :+ 0)
1.0 :+ 0.0
ghci> sqrt ((-1) :+ 0)
Segmentation fault
$

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List