TH type quotes cannot contain free type variables
A type quote cannot contain a free type variable, e.g.
module TH where
import Language.Haskell.TH
foo = [t| a |]
This is very awkward when passing arguments that are going into instance declarations since these need to have free type variables.
Trac metadata
Trac field | Value |
---|---|
Version | 7.2.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Template Haskell |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |