Re: Hat bug report: Ambiguous occurrence `List'

Malcolm Wallace <[email protected]> Tue, 29 Jun 2004 22:48:32 +0100
Newsgroups gmane.comp.lang.haskell.hat
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
Fergus Henderson <[email protected]> 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