TcTyFuns.flattenType: unexpected PredType
type family Garbage y
type instance Garbage y = [Num y => y]
yields
*Main> undefined :: Garbage Int
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.1 for x86_64-unknown-linux):
TcTyFuns.flattenType: unexpected PredType
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
While its perfectly reasonable to die out on garbage like this, a less apocalyptic error message might be nice.
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | ekmett@gmail.com |
Operating system | |
Architecture |