multiple module program fails compile

Larry Evans cppljevans at
Sat Nov 13 11:20:31 EST 2010

The attached program fails to compile despite it being a close
copy of that shown in the Reference: comments.  The ghci invocation
results in:

~/prog_dev/haskell/my-code $ ghci Modules.hs
GHCi, version 6.12.1:  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Test             ( Modules.hs, interpreted )

Modules.hs:12:0: parse error on input `module'
Failed, modules loaded: none.
Prelude> :q
Leaving GHCi.

What should change to allow compilation?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: Modules.hs
Type: text/x-haskell
Size: 399 bytes
Desc: not available
Url :

More information about the Glasgow-haskell-users mailing list