[Hat] Hat bug report: Ambiguous occurrence `List'

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Jun 29 17:48:32 EDT 2004


Fergus Henderson <fjh007 at galois.com> writes:

> This one can be reproduced with a simple one-liner, "(>>) = 42":
> 
> 	bash$ cat Foo.hs
> 	(>>) = 42

Hmm, but isn't (>>) indeed defined in the Prelude?  So what is the
expectation here?  Is it something to do with lazy reporting of
name clashes?

> 	bash$ cat Foo.hs
> 	import Prelude hiding (Prelude.head)
> 
> 	fjh$ hmake -hat Foo
> 	hat-trans  Foo.hs
> 
> 	Fail: Variable or constructor not in scope: Prelude.head

Probably easy to fix.  I'll look into it tomorrow.

Regards,
    Malcolm


More information about the Hat mailing list