multiple module program fails compile

Larry Evans cppljevans at suddenlink.net
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: http://www.haskell.org/ghc/  :? 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?

TIA.

-Larry


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Modules.hs
Type: text/x-haskell
Size: 399 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20101115/514073fa/Modules.bin


More information about the Glasgow-haskell-users mailing list