[GHC] #7681: Panic on quoting empty case

GHC cvs-ghc at haskell.org
Tue Feb 12 02:18:28 CET 2013


#7681: Panic on quoting empty case
-----------------------------+----------------------------------------------
Reporter:  monoidal          |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Template Haskell
 Version:  7.7               |       Keywords:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:                  
-----------------------------+----------------------------------------------
Changes (by monoidal):

  * component:  Compiler => Template Haskell


Comment:

 Splicing does not work, either:

 {{{
 Prelude Language.Haskell.TH> $(return $ CaseE (LitE (IntegerL 0)) [])

 <interactive>:7:3:
     Case expression with no alternatives
     When splicing a TH expression: case 0 of
     In the expression: $(return $ CaseE (LitE (IntegerL 0)) [])
     In an equation for `it':
         it = $(return $ CaseE (LitE (IntegerL 0)) [])
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7681#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list