Problems with hat

Boey Maun Suang boeyms at macports.org
Thu Dec 27 06:25:53 PST 2007


Hi Max,

If this bug with the hat port hasn't been fixed for you, could you file
a ticket on Trac for it?  (See
http://guide.macports.org/#project.tickets for how to do so.)  I'm
afraid that I can't help you directly, but at least this way it's
properly listed.  Also, if anyone is a Haskell-on-MacPorts guru, some
love this way would be appreciated!

Kind regards,


Maun Suang

> I just installed hat and tried using it, but something appears to have
> gone wrong with the install:
>
> -8<--------------------------------
> $ hmake -hat fib.hs
> hat-trans   fib.hs
> Wrote Hat/fib.hs
> ghc      -c -package hat -o Hat/fib.o Hat/fib.hs
>
> Hat/fib.hs:3:0:
>     Failed to load interface for `Hat.PreludeBasic':
>       Use -v to see a list of the files searched for.
> -----------------------------------
>
> Ooops. I check where it looks for Hat.PreludeBasic:
>
> -8<--------------------------------
> $ hmake -hat -v fib.hs
> hat-trans   fib.hs
> Wrote Hat/fib.hs
> ghc   -v    -c -package hat -o Hat/fib.o Hat/fib.hs
> Glasgow Haskell Compiler, Version 6.6, for Haskell 98, compiled by 
> GHC version 6.6
> Using package config file: /opt/local/lib/ghc-6.6/package.conf
> Using package config file: /Users/max/.ghc/powerpc-darwin-6.6/package.conf
> wired-in package base mapped to base-2.0
> wired-in package rts mapped to rts-1.0
> wired-in package haskell98 mapped to haskell98-1.0
> wired-in package template-haskell mapped to template-haskell-2.0
> Hsc static flags: -static
> Created temporary directory: /tmp/ghc22180_0
> *** Checking old interface for main:Main:
> *** Parser:
> *** Renamer/typechecker:
>
> Hat/fib.hs:3:0:
>     Failed to load interface for `Hat.PreludeBasic':
>       locations searched:
>         Hat/PreludeBasic.hi
>         Hat/PreludeBasic.hi-boot
>         
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hat/work/destroot/opt/local/imports/hat-2.05/ghc-606/Hat/PreludeBasic.hi
> *** Deleting temp files:
> Deleting: /tmp/ghc22180_0/ghc22180_0.s
> Warning: deleting non-existent /tmp/ghc22180_0/ghc22180_0.s
> *** Deleting temp dirs:
> Deleting: /tmp/ghc22180_0
> -----------------------------------
>
> Hm. I check and find that my hat has some file like that in
> /opt/local/imports/hat-2.05/ghc-606/Hat, and try
>
> -8<--------------------------------
> $ hmake -hat -I/opt/local/imports/hat-2.05/ghc-606 fib.hs
> hat-trans   -I/opt/local/imports/hat-2.05/ghc-606 fib.hs
> Wrote Hat/fib.hs
> ghc    -I/opt/local/imports/hat-2.05/ghc-606  
> -i/opt/local/imports/hat-2.05/ghc-606  -c -package hat -o Hat/fib.o 
> Hat/fib.hs
>
> Hat/fib.hs:3:0:
>     Bad interface file: 
> /opt/local/imports/hat-2.05/ghc-606/Hat/PreludeBasic.hi
>         Something is amiss; requested module  main:Hat.PreludeBasic 
> differs from name found in the interface file hat-2.5:Hat.PreludeBasic
> -----------------------------------
>
> hat-2.5 versus hat-2.05? I am not sure what's going wrong here.
>
> Any hints appreciated.
>
> Thanks,
>
> Max
>
>
>
> hat @2.05_0
> ghc @6.6_5+darwin_8_powerpc
> hmake @3.13_0
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users
>




More information about the macports-users mailing list