#5882: Template Haskell declaration quote reports error with GADT syntax
---------------------------------------+------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: normal | Component: Template Haskell
Version: 7.4.1 | Keywords: TemplateHaskell
GADTSyntax
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHC rejects valid program | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------------+------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5882>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs