#3395: Template Haskell crashes
-----------------------------+----------------------------------------------
Reporter:  NeilMitchell      |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.4            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 The following fragment:

 {{{
 {-# LANGUAGE TemplateHaskell #-}

 import Language.Haskell.TH

 foo = $(return $
     CompE
         [NoBindS (VarE $ mkName "undefined")
         ,BindS (VarP $ mkName "r1") (VarE $ mkName "undefined") ])
 }}}

 when loaded gives:

 {{{
 *** Exception: hsSyn\Convert.lhs:(427,14)-(428,33): Non-exhaustive
 patterns in case
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3395>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to