#6005: Template Haskell disallows use of promoted data constructor in same 
splice
----------------------------------------+-----------------------------------
  Reporter:  goldfire                   |          Owner:                     
      Type:  bug                        |         Status:  new                
  Priority:  normal                     |      Milestone:                     
 Component:  Template Haskell           |        Version:  7.5                
Resolution:                             |       Keywords:  DataKinds PolyKinds
        Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple   
   Failure:  GHC rejects valid program  |     Difficulty:  Unknown            
  Testcase:  th/T6005                   |      Blockedby:                     
  Blocking:                             |        Related:                     
----------------------------------------+-----------------------------------
Changes (by goldfire):

  * status:  closed => new
  * resolution:  fixed =>


Comment:

 Thanks for applying this fix. Unfortunately, the following case still
 fails:

 {{{
 $( [d|
   data Nat = Zero | Succ Nat deriving Show
   data Proxy a = Proxy
   foo :: Proxy Zero
   foo = Proxy
   |])
 }}}

 The only difference between this case and the original is the {{{deriving
 Show}}}.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6005#comment:3>
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

Reply via email to