template-haskell : need a good error message instead of just an unexplained panic
Will attach two files to this bug, quasi-arithmetic.hs and QuasiArith.hs.
Running:
ghc --make quasi-arithmetic.hs -o quasi-arithmetic
on these files results in:
ghc: panic! (the 'impossible' happened)
(GHC version 7.4.2 for x86_64-unknown-linux):
mkUsage
main:QuasiArith BinopExpr{d}[(0B, base:System.IO.print{v 0B}),
(32I, ghc-prim:GHC.Types.IO{tc 32I}),
(40, ghc-prim:GHC.Tuple.(){(w) tc 40}),
(rwP, main:QuasiArith.MulOp{d rwP}),
(rwR, main:QuasiArith.AddOp{d rwR}),
(rwU, main:QuasiArith.BinopExpr{d rwU}),
(rwW, main:QuasiArith.IntExpr{d rwW}),
(r2Ha, main:Main.main{v r2Ha})]
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Template Haskell |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |