> 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
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
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