panic: wrongKindOfFamily
The following code panics with GHC HEAD:
{-# LANGUAGE TypeFamilies #-}
class Test a where
type TestT a :: *
instance Test Bool where
newtype TestT Bool = Int
$ ghc Panic2.hs
[1 of 1] Compiling Main ( Panic2.hs, Panic2.o )
Panic2.hs:7:3:ghc.exe: panic! (the 'impossible' happened)
(GHC version 7.9.20141217 for i386-unknown-mingw32):
wrongKindOfFamily TestT
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 7.9 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |