#639: Give civilised error messages when desugaring Template Haskell brackets
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: task | Status: closed
Priority: normal | Milestone:
Component: Template Haskell | Version: 6.4.1
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: Unknown
Os: Unknown |
-----------------------------------+----------------------------------------
Changes (by igloo):
* resolution: => fixed
* testcase: =>
* status: new => closed
Comment:
We now get nice errors, e.g.:
{{{
module Foo where
foo = [d| data Foo a where
Bar :: Foo Int
|]
}}}
gives
{{{
% ghc -c Foo.hs -fglasgow-exts -fth
Foo.hs:5:14:
GADT declaration not (yet) handled by Template Haskell
:THFake.Bar :: :THFake.Foo Int
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/639>
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