#7426: import Foo hiding (X) should not be a fatal error when X is not exported
by
Foo
+---
Reporter: luqui | Owner:
Type: bug| Status
#7426: import Foo hiding (X) should not be a fatal error when X is not exported
by
Foo
--+-
Reporter: luqui | Owner:
Type: bug| Status: new
#7426: import Foo hiding (X) should not be a fatal error when X is not exported
by
Foo
---+
Reporter: luqui | Owner:
Type: bug | Status: new
#7426: import Foo hiding (X) should not be a fatal error when X is not exported
by
Foo
---+
Reporter: luqui | Owner:
Type: bug | Status: new
Hi,
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
HidingBug.hs:4: Variable not in scope: `Prelude.lookup'
This behaviour
I can't repeat this with a small example, and I can't repeat it with the
example you attached because it requires several other modules.
Perhaps you could try the compile again, but add the flag
'-ddump-rn-trace', and send us the output?
Cheers,
Simon
DaVinciTypes defines the types DaVinciAnswer and the constructor Context.
(.hi file attached.)
So I would expect
import DaVinciTypes hiding (Context)
import qualified DaVinciTypes
to make DaVinciAnswer in scope, but DaVinciTypes.Context only available when so
qualified.
This doesn't appear