Template Haskell cannot splice an infix declaration for a data constructor
When I say
$([d|
data Blargh = (:<=>) Int Int
infix 4 :<=>
|])
I get
Illegal variable name: ‘:<=>’
When splicing a TH declaration: infix 4 :<=>_0
The code inside the TH quote works when not used with TH.
I will fix in due course.
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Template Haskell |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |