RE: GHC 5.02, import Prelude hiding ...

2001-10-13 Thread Malcolm Wallace
> In the current Report draft, the idea is that a hiding clause hides > both qualified and unqualified names > > import Foo hiding( f ) > hides Foo.f as well as unqualified f. > > I think we all agreed that is a good change. But we (ahem, I) forgot > to propagate that change to the sectio

RE: GHC 5.02, import Prelude hiding ...

2001-10-12 Thread Simon Peyton-Jones
Thomas Hallgren says: | The following program was accepted by previous versions of | GHC, but is not in GHC 5.02 | | module HidingBug where | import Prelude hiding (lookup) | | lookup env x = Prelude.lookup x env | | Instead, you get the error message

Prelude hiding

1991-10-24 Thread haskell-request
Original-Via: uk.ac.nsf; Thu, 24 Oct 91 01:55:59 BST What happens with the following program? import Prelude hiding(Dialogue) main _ = error "main" Dialogue is not in the Core so it can be hidden, making main have an unknown type. -- Lennart