gchi not loading function from file

Posted by Delirium tremens on Stack Overflow See other posts from Stack Overflow or by Delirium tremens
Published on 2010-06-01T13:33:45Z Indexed on 2010/06/01 13:43 UTC
Read the original article Hit count: 194

Filed under:
|

In test.hs, I have:

doubleMe x = x + x

In ghci, I type:

Prelude> :l test
[1 of 1] Compiling Main             ( test.hs, interpreted )
Ok, modules loaded: Main.
*Main> doubleMe 9

<interactive>:1:0: Not in scope: `doubleMe'
*Main> 

Why? How to fix?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about ghci