Ticket #5882 (closed bug: fixed)
Template Haskell declaration quote reports error with GADT syntax
| Reported by: | goldfire | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | Template Haskell | Version: | 7.4.1 |
| Keywords: | TemplateHaskell GADTSyntax | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | GHC rejects valid program | Difficulty: | Unknown |
| Test Case: | th/T5882 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
Consider the following code:
{-# LANGUAGE GADTSyntax, TemplateHaskell, KindSignatures #-}
data Foo :: * -> * where
Foo :: Foo a
$( [d|
data Bar :: * -> * where
Bar :: Bar a
|] )
The type Foo compiles just fine. The type Bar does not.
Change History
Note: See
TracTickets for help on using
tickets.
