Bang in front of type name crashes GHC
When adding a bang to a type constructor applied to a type, I forgot to surround it with parenthesis:
module Test where
import Data.IntMap
data T = C { f :: !IntMap Int }
leading to the following crash:
[1 of 1] Compiling Test ( Control/Distributed/Hayride/Test.hs, interpreted )
ghc: panic! (the 'impossible' happened)
(GHC version 7.6.0.20120810 for x86_64-unknown-linux):
tc_hs_type: bang
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.1-rc1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |