[GHC] #14786: Compile-time panic with kind-level application in type famiy decl
GHC
ghc-devs at haskell.org
Sat Feb 10 14:38:19 UTC 2018
#14786: Compile-time panic with kind-level application in type famiy decl
-------------------------------------+-------------------------------------
Reporter: lyxia | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Keywords: | Operating System: Unknown/Multiple
Architecture: x86_64 | Type of failure: Compile-time
(amd64) | crash or panic
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Minimal example:
{{{
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeInType #-}
type family E e (a :: k) (orn :: e a) :: ()
}}}
Error message:
{{{
ghc: panic! (the 'impossible' happened)
(GHC version 8.2.2 for x86_64-unknown-linux):
getRuntimeRep
k_anW[sk:1] :: k0_aRs[tau:1]
Call stack:
CallStack (from HasCallStack):
prettyCurrentCallStack, called at
compiler/utils/Outputable.hs:1133:58 in ghc:Outputable
callStackDoc, called at compiler/utils/Outputable.hs:1137:37 in
ghc:Outputable
pprPanic, called at compiler/types/Type.hs:1967:18 in ghc:Type
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14786>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list