[Haskell-beginners] defining functions in ghci

Amy de Buitléir amy at nualeargais.ie
Mon Jan 25 18:56:43 EST 2010

You need to put "let" in front of any sort of definition in GHCI.

let double x = x + x

2010/1/25 Joe Van Dyk <joe at fixieconsulting.com>:
> Prelude> double x = x + x
> <interactive>:1:9: parse error on input `='

More information about the Beginners mailing list