[GHC] #7396: Improve "parse error on input `$'" when TemplateHaskell PRAGMA not declared
GHC
ghc-devs at haskell.org
Sat Nov 30 00:40:14 UTC 2013
#7396: Improve "parse error on input `$'" when TemplateHaskell PRAGMA not declared
----------------------------------------+---------------------------
Reporter: ydewit | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Template Haskell | Version: 7.4.2
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86
Type of failure: Building GHC failed | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
----------------------------------------+---------------------------
Changes (by parcs):
* status: closed => new
* resolution: wontfix =>
Comment:
Hi,
This set of three patches augments errors that may be caused by not having
TH enabled, to suggest enabling TH.
Parse errors like the following will now suggest enabling TemplateHaskell:
{{{
module A where
$foo
}}}
{{{
module B where
foo
}}}
{{{
module C where
bar = 3 + $(x)
}}}
Of course, these are only heuristics so there will be false-positive and
false-negative cases. But I think these heuristics will help more than
they will hurt.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7396#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list