GHC Panic: "AThing evaluated unexpectedly"
Using an unmodified build from March 13, 2012, I compiled the following:
{-# LANGUAGE TemplateHaskell #-}
data Bar a = Bar $( [t| a |] )
I got the following panic:
ghc-stage2: panic! (the 'impossible' happened)
(GHC version 7.5.20120313 for x86_64-unknown-linux):
AThing evaluated unexpectedly tcTyVar a{tv aKM}
I observed this exact same panic on a modified 3/25/12 build.
Trac metadata
Trac field | Value |
---|---|
Version | 7.5 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Template Haskell |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |