Tuple (and other exotic predicates) not yet handled in Template Haskell
Say I make the following declarations:
{-# LANGUAGE ConstraintKinds #-}
type IOable a = (Show a, Read a)
foo :: IOable a => a
foo = undefined
It is currently impossible to reify foo in Template Haskell. This also comes up when using nested lists of constraints in Template Haskell quotes.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.5 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Template Haskell |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |