#7396: Improve "parse error on input `$'" when TemplateHaskell PRAGMA not
declared
--------------------------------+-------------------------------------------
Reporter: ydewit | Owner:
Type: bug | Status: new
Priority: normal | Component: Template Haskell
Version: 7.4.2 | Keywords:
Os: MacOS X | Architecture: x86
Failure: Building GHC failed | Blockedby:
Blocking: | Related:
--------------------------------+-------------------------------------------
Spent close to 1h chasing what possibly could go wrong here:
{{{
import Data.Binary
import Data.DeriveTH
data Test = Pass | Failed
$(derive makeBinary ''Test)
}}
Until, stupid me, I realized that the TemplateHaskell PRAGMA was missing.
Could this message be a bit more friendly pointing me to the real issue?
If fixing this is simple, you could give me a few pointers and I'll try to
provide a patch even though my Haskell experience is a bit thin.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7396>
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