[GHC] #8469: GHCi reports out-of-scope type family instances with :info
#8469: GHCi reports out-of-scope type family instances with :info ------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- I have {{{ {-# LANGUAGE TypeFamilies #-} module A () where type family F a type instance F Int = Bool }}} {{{ module B where import A }}} In GHCi: {{{ Prelude> :load B [1 of 2] Compiling A ( A.hs, interpreted ) [2 of 2] Compiling B ( B.hs, interpreted ) Ok, modules loaded: B, A. *B> :i Int data Int = GHC.Types.I# GHC.Prim.Int# -- Defined in ‛GHC.Types’ <snip> type instance A.F Int -- Defined at A.hs:6:1 *B> }}} This last output from `:info` should be suppressed, I would think. (I agree it should be printed with `:info!`.) Note the `()` in module `A`'s export list. This is a regression from 7.6.3, where the out-of-scope type family instance is not printed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8469> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8469: GHCi reports out-of-scope type family instances with :info -------------------------------------+------------------------------------ Reporter: goldfire | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by simonpj): * owner: => simonpj Comment: Ah I see. I'm fixing this -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8469#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8469: GHCi reports out-of-scope type family instances with :info -------------------------------------+------------------------------------ Reporter: goldfire | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"b2f5cea3ef00da7158e41d89c2f487bc61e14188/testsuite"]: {{{ #!CommitTicketReference repository="testsuite" revision="b2f5cea3ef00da7158e41d89c2f487bc61e14188" Test Trac #8469 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8469#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8469: GHCi reports out-of-scope type family instances with :info -------------------------------------+------------------------------------ Reporter: goldfire | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by simonpj): Fixed by {{{ commit b73800c306bd7a73b1090fb766d1860e6ab0623f Author: Simon Peyton Jones <simonpj@microsoft.com> Date: Wed Oct 23 14:23:46 2013 +0100 oprhNamesOfFamInst should include the type family itself (fix Trac #8469) Trivial fix; matches oprhNamesOfClsInst. compiler/types/FamInstEnv.lhs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8469#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8469: GHCi reports out-of-scope type family instances with :info -------------------------------------+------------------------------------ Reporter: goldfire | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"b73800c306bd7a73b1090fb766d1860e6ab0623f/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="b73800c306bd7a73b1090fb766d1860e6ab0623f" oprhNamesOfFamInst should include the type family itself (fix Trac #8469) Trivial fix; matches oprhNamesOfClsInst. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8469#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8469: GHCi reports out-of-scope type family instances with :info -------------------------------------+------------------------------------ Reporter: goldfire | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by monoidal): Should this ticket be marked as fixed? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8469#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8469: GHCi reports out-of-scope type family instances with :info -------------------------------------+------------------------------------ Reporter: goldfire | Owner: simonpj Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: new => closed * resolution: => fixed Comment: Looks like it. Good spot. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8469#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC