Re: Hat bug report: Ambiguous occurrence `List'

Fergus Henderson <[email protected]> Tue, 22 Jun 2004 17:58:37 -0700
Newsgroups gmane.comp.lang.haskell.hat
Message-ID <[email protected]>
On 22-Jun-2004, Malcolm Wallace <[email protected]> wrote:
> Hoping you can re-build the hat-lib from sources.

I did indeed eventually succeed in building it from the CVS sources.
And the patch that you made solved the ambiguity problem.

However, unfortunately I then ran into another problem.
The symptom is

$ make hat
HATFLAGS=-I. hmake -hat -i. -i/usr/include/hat -i/home/users/fjh007/install/hat-cvs/include/hat -i./ghc -i./unix -package concurrent -package net -package posix -package hat -O -Wall -package-name galois  -Iunix/include -Iinclude   -c Codec/Base64.hs -o Hat/Codec/Base64.o
hat-trans -I. Codec/Base64.hs

Fail: /usr/local/include/hat/Data/Word.hx: openFile: does not exist (No such file or directory)

/usr/bin/haskell-compiler   -package concurrent -package net -package posix -package hat -O -Wall -package-name galois -c -o  -Iunix/include -Iinclude  -i. -i/usr/include/hat -i/home/users/fjh007/install/hat-cvs/include/hat -i./ghc -i./unix -iunix/include -iinclude  -c -package hat -o Hat/Codec/Base64.o Hat/Codec/Base64.hs
ghc-6.2: file `Hat/Codec/Base64.hs' does not exist
make: *** [Hat/Codec/Base64.o] Error 1

I'm not quite sure why it goes on and invokes /usr/bin/haskell-compiler after the openFile
failure.  But that's a side issue.  The main problem here seems to be that Hat doesn't support
the "Data.Word" module.  Is there any simple work-around?  I'm not particularly interested
in tracing that module.

-- 
Fergus J. Henderson                 |  "I have always known that the pursuit
Galois Connections, Inc.            |  of excellence is a lethal habit"
Phone: +1 503 626 6616              |     -- the last words of T. S. Garp.