[Haskell-beginners] defining functions in ghci

Joe Van Dyk joe at fixieconsulting.com
Mon Jan 25 18:38:39 EST 2010

This messes me up:

$ ghci
GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
double x =Loading package base ... linking ... done.
Prelude> double x = x + x
<interactive>:1:9: parse error on input `='

Why does that happen?

Joe Van Dyk

More information about the Beginners mailing list