Make pattern synonyms work with Template Haskell
Template Haskell has no support for pattern synonyms. This should be added.
Specifically:
- Create syntax in
Language.Haskell.TH.Syntaxand corresponding functions inLanguage.Haskell.TH.Lib - Support in !DsMeta for desugaring pattern synonym quotations. See
rep_bind. - Support in Convert for splicing in pattern synonyms.
- Support in !TcSplice for reifying pattern synonyms. See
reifyThing.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.8.1-rc1 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Template Haskell |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |