[Haskell-beginners] [Fwd: Re: [Hat] How to use Control.Monad.State?]

Larry Evans cppljevans at suddenlink.net
Wed Nov 12 08:54:19 EST 2008


Since the hat mailing list seems a bit unresponsive,
(or I seem to be impatient),
I'm forwarding the attached post here.
I've also attached the Makefile that produced the
error message shown in the attachment.

When the Makefile target is run, it works.
However, with target=hat, It produces the
error shown in the forwarded msg:

Hat/tickSimple.hs:4:0:
   Bad interface file: 
/usr/lib/haskell-packages/ghc6/lib/hat-2.05/ghc-6.8.2/Hat/Prelude.hi
       Something is amiss; requested module  main:Prelude differs from 
name found in the interface file hat-2.5:Hat.Prelude

Please, how should the Makefile be modified to
avoid this error?

-Hopefully,
Larry

-------------- next part --------------
MAIN=Insort
MAIN=tickSimple

INCS=/usr/lib/haskell-packages/ghc6/lib/hat-2.05/ghc-6.8.2/Hat

GHC.FLAGS=-P$(INCS)
GHC.LANG=-XMultiParamTypeClasses -XFunctionalDependencies -XFlexibleInstances
GHC.OPTS=$(GHC.FLAGS) $(GHC.LANG)

run:
	runghc $(GHC.LANG) $(MAIN).hs

hat:
	hmake -hat $(GHC.OPTS) $(MAIN)
-------------- next part --------------
An embedded message was scrubbed...
From: Larry Evans <cppljevans at suddenlink.net>
Subject: Re: [Hat] How to use Control.Monad.State?
Date: Mon, 10 Nov 2008 11:30:21 -0600
Size: 4879
Url: http://www.haskell.org/pipermail/beginners/attachments/20081112/3d2989f0/HatHowtouseControl.Monad.State.eml


More information about the Beginners mailing list