[GHC] #5882: Template Haskell declaration quote reports error with GADT syntax

GHC cvs-ghc at haskell.org
Fri Feb 17 22:26:08 CET 2012


#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



More information about the Glasgow-haskell-bugs mailing list