Ticket #3395 (closed bug: fixed)
Template Haskell crashes
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
