#2674: ghc panic TcPat.checkArgs
------------------------------+---------------------------------------------
Reporter: rwbarton | Owner: igloo
Type: merge | Status: new
Priority: normal | Milestone: 6.10.1
Component: Template Haskell | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: th/T2674 | Architecture: Unknown/Multiple
Os: Unknown/Multiple |
------------------------------+---------------------------------------------
Changes (by simonpj):
* testcase: => th/T2674
* owner: => igloo
* type: bug => merge
Comment:
Thanks for the report. Fixed by
{{{
Thu Oct 30 09:45:28 GMT 2008 [EMAIL PROTECTED]
* Fix Trac #2674: in TH reject empty case expressions and function
definitions
}}}
Now from this program
{{{
{-# LANGUAGE TemplateHaskell #-}
import Language.Haskell.TH
$(return [FunD (mkName "foo") []])
}}}
we get the more civilised error
{{{
T2674.hs:3:2:
Function binding for `foo' has no equations
When splicing generated code into the program
}}}
Pls merge
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2674#comment:4>
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