[Hat] How to use Control.Monad.State?

Larry Evans cppljevans at suddenlink.net
Mon Nov 10 12:30:21 EST 2008


On 11/10/08 07:37, Larry Evans wrote:
[snip]
> But the compiler then says it can't find the library.
>
> What should I do to debug this code with hat?
> TIA
>
 From reading section 2 of:

  http://www.haskell.org/hat/hatuser.html

I tried just using hmake; however, my hmake didn't understand -ghc.
So I just rm'ed the compiler option, but  when the attached
tickSimple.hs was compiled, I got:

{---cut here---
make hat
hmake -hat -P/usr/lib/haskell-packages/ghc6/lib/hat-2.05/ghc-6.8.2/Hat 
-XMultiParamTypeClasses -XFunctionalDependencies -XFlexibleInstances 
tickSimple
hat-trans   -P/usr/lib/haskell-packages/ghc6/lib/hat-2.05/ghc-6.8.2/Hat 
tickSimple.hs
Wrote Hat/tickSimple.hs
/usr/bin/haskell-compiler   -XMultiParamTypeClasses 
-XFunctionalDependencies -XFlexibleInstances   
-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

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
make: *** [hat] Error 1

}---cut here---

Please, how do I get hat to work with tickSimple.hs?

-regards,
Larry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tickSimple.hs
Type: text/x-haskell
Size: 471 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/hat/attachments/20081110/7a17d19e/tickSimple.bin


More information about the Hat mailing list