incorrect bang patterns rejected with "report a ghc bug"
{-# LANGUAGE BangPatterns #-}
data E a = E { e :: ! [] a }
{- The current error given is not graceful:
ghc: panic! (the 'impossible' happened)
(GHC version 7.6.1 for x86_64-unknown-linux):
tc_hs_type: bang
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
-}
-- maybe there could be some suggestion that E should have been written
data D a = D { d :: ! ([] a) }
Trac metadata
Trac field |
Value |
Version |
7.6.1 |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
Unresolved |
Component |
Compiler |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|