#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
---------------------------------+------------------------------------------
Reported by Luite Stegeman
{{{
--------- A.hs
module A where
import B
--------- B.hs
{-# LANGUAGE TypeFamilies #-}
module B where
import qualified C
data B1 a = B1 a
instance C.C1 (B1 a) where
data C.F (B1 a) = B2 a
data family D a
---------- C.hs
{-# LANGUAGE TypeFamilies #-}
module C where
class C1 a where
data F a :: *
}}}
Nnw use ghci 7.2.1:
{{{
ghci A
*A> :info F
data family F a -- Defined at C.hs:6:8
ghci B
*B> :browse
data B1 a = B1 a
data instance B.R:FB1 (B1 a) = B2 a
data family D a
data family F a
-- Why is F displayed here?
-- What is B.R:FB1?
*B> :info F
Top level: Not in scope: data constructor `F'
*B> :info C.F
data family C.F a -- Defined at C.hs:6:8
}}}
But with ghci 7.0.4:
{{{
ghci A
*A> :info F
Top level: Not in scope: data constructor `F'
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5417>
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