Ticket #6064 (closed feature request: invalid)
InstanceD declaration does not allow for explicit TyVarBndrs
| Reported by: | goldfire | Owned by: | goldfire |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template Haskell | Version: | 7.5 |
| Keywords: | TemplateHaskell InstanceD | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: | #6081 |
Description
The definition of InstanceD does not allow for explicitly-kinded type variables. Though it is possible to use SigT to give kinds in places, GHC currently does not allow undeclared kind variables to appear there.
I propose changing the definition of InstanceD to be as follows:
type Dec = ... | InstanceD [TyVarBndr] Cxt Type [Dec] ...
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

