[GHC] #14580: GHC panic (TypeInType) (the 'impossible' happened)

#14580: GHC panic (TypeInType) (the 'impossible' happened) -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.3 Keywords: TypeInType | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{ $ ghci -ignore-dot-ghci GHCi, version 8.3.20171208: http://www.haskell.org/ghc/ :? for help Prelude> import Data.Kind Prelude Data.Kind> :set -XPolyKinds -XDataKinds -XTypeInType -XTypeOperators Prelude Data.Kind> type Cat ob = ob -> ob -> Type Prelude Data.Kind> data ISO' :: Cat i -> i -> i -> Type Prelude Data.Kind> type ISO cat a b = ISO' cat a b -> Type Prelude Data.Kind> type (a <--> b) iso cat = ISO (iso :: cat a b) ghc-stage2: panic! (the 'impossible' happened) (GHC version 8.3.20171208 for x86_64-unknown-linux): piResultTy k_a1x1[tau:1] a_a1wU[sk:1] Call stack: CallStack (from HasCallStack): callStackDoc, called at compiler/utils/Outputable.hs:1144:37 in ghc:Outputable pprPanic, called at compiler/types/Type.hs:951:35 in ghc:Type Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Prelude Data.Kind> }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14580 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14580: GHC panic (TypeInType) (the 'impossible' happened)
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.3
Resolution: | Keywords: TypeInType
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#14580: GHC panic (TypeInType) (the 'impossible' happened) -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.3 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | polykinds/T14580 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * testcase: => polykinds/T14580 * resolution: => fixed Comment: HEAD gives {{{ Prelude Data.Kind> type (a <--> b) iso cat = ISO (iso :: cat a b) <interactive>:7:31: error: • Expected kind ‘Cat a’, but ‘(iso :: cat a b)’ has kind ‘cat a b’ • In the first argument of ‘ISO’, namely ‘(iso :: cat a b)’ In the type ‘ISO (iso :: cat a b)’ In the type declaration for ‘<-->’ }}} probably as a result of the patches I pushed yesterday. Hurrah. I've added a regression test, to be on the safe side. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14580#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14580: GHC panic (TypeInType) (the 'impossible' happened) -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.3 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | polykinds/T14580 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): Excellent, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14580#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC