
13 Nov
2010
13 Nov
'10
11:20 a.m.
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