Template Haskell quoting bug
Quoting local variable in a certain situation make GHC panic.
This OK:
foo = "foo"
expFoo :: Q Exp
expFoo = return (VarE 'foo)
But this will panic when you use $(expFoo) in another module:
expFoo :: Q Exp
expFoo = let foo = "foo" in return (VarE 'foo)
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | Unresolved |
Component | Template Haskell |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Multiple |