[Hat] How to use Control.Monad.State?
cppljevans at suddenlink.net
Fri Nov 14 08:54:08 EST 2008
On 11/14/08 06:22, Malcolm Wallace wrote:
> Sorry for the delay in response - I have only just seen your messages.
No problem. Thanks, Malcolm.
> I think your first approach, using a Makefile, was sound. The only
> thing missing was the specification of the package in which the module
> Control.Monad.State lives. I.e. you need to add "-package mtl" to the
> compilation commands.
I tried with the attached Makefile (including your suggested -package
however, I still got:
Compilation started at Fri Nov 14 07:47:34
make -k hat
hmake -hat -package mtl
-XMultiParamTypeClasses -XFunctionalDependencies -XFlexibleInstances
/usr/bin/haskell-compiler -package mtl -XMultiParamTypeClasses
-i/usr/lib/haskell-packages/ghc6/lib/hat-2.05/ghc-6.8.2/Hat -c -package
hat -o Hat/tickSimple.o Hat/tickSimple.hs
Bad interface file:
Something is amiss; requested module main:Prelude differs from
name found in the interface file hat-2.5:Hat.Prelude
make: *** [hat] Error 1
Compilation exited abnormally with code 2 at Fri Nov 14 07:47:37
I'd appreciate any further help you could provide.
-------------- next part --------------
GHC.LANG=-XMultiParamTypeClasses -XFunctionalDependencies -XFlexibleInstances
runghc $(GHC.LANG) $(MAIN).hs
hmake -hat -package mtl $(GHC.OPTS) $(MAIN)
More information about the Hat