#5417: GHCi browse gets type families wrong
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.2.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by luite):
I don't think this is limited to :browse, since I noticed this problem
when something like this didn't compile anymore with 7.2.1:
{{{
--------- D.hs
module D where
data F = F
}}}
{{{
--------- E.hs
module E where
import D
import B
x :: F
}}}
{{{
-- ghc 7.0.4
> ghci E
Ok, modules loaded: E, D, B, C.
*E> :type x
x :: F
*E> :info F
data F = F -- Defined at D.hs:4:6
}}}
{{{
-- ghc 7.2.1
> ghci E
[4 of 4] Compiling E ( E.hs, interpreted )
E.hs:7:6:
Ambiguous occurrence `F'
It could refer to either `D.F', imported from D at E.hs:4:1-8
or `B.F', imported from B at E.hs:5:1-8
Failed, modules loaded: D, C, B.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5417#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs