[GHC] #9181: :browse GHC.TypeLits causes panic
#9181: :browse GHC.TypeLits causes panic ------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: GHCi crash Difficulty: Unknown | Test Case: T9181 Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- Upon `:browse GHC.TypeLits` I get: {{{ ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.9.20140606 for x86_64-unknown-linux): toIfaceDecl: BuiltInFamTyCon * Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9181> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9181: :browse GHC.TypeLits causes panic -------------------------------------+------------------------------------ Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: GHCi crash | Difficulty: Unknown Test Case: T9181 | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Joachim Breitner <mail@…>): In [changeset:"b36bc2f5a9757c2b7e6967893cf2883846b8ce91/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="b36bc2f5a9757c2b7e6967893cf2883846b8ce91" Test case for #9181 (:browse GHC.TypeLits panic) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9181#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9181: :browse GHC.TypeLits causes panic -------------------------------------+------------------------------------ Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: GHCi crash | Difficulty: Unknown Test Case: T9181 | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by nomeata): This is caused by {{{ to_ifsyn_rhs (BuiltInSynFamTyCon {}) = pprPanic "toIfaceDecl: BuiltInFamTyCon" (ppr tycon) }}} in `tyConToIfaceDecl`. Of course we don’t want `BuiltInSynFamTyCon` in interface files, but we use `tyConToIfaceDecl` (via `pprTyThing`) also for pretty-printing. So this function needs to be made “totaler”. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9181#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9181: :browse GHC.TypeLits causes panic -------------------------------------+------------------------------------ Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: GHCi crash | Difficulty: Unknown Test Case: T9181 | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Joachim Breitner <mail@…>): In [changeset:"96a8980183ed12a354db1b92f271b98bccce9ae8/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="96a8980183ed12a354db1b92f271b98bccce9ae8" Pretty-print built in synonym families in interfaces This closes #9181. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9181#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9181: :browse GHC.TypeLits causes panic -------------------------------------+------------------------------------ Reporter: nomeata | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: GHCi crash | Difficulty: Unknown Test Case: T9181 | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by nomeata): * status: new => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9181#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC