
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
#12146: syntax repair suggestion is too eager to suggest TemplateHaskell -------------------------------------+------------------------------------- Reporter: j.waldmann | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: #7396 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => patch * related: => #7396 Comment: You'll have to update the expected output for some tests as well, see [wiki:Building/RunningTests]. Also have a look at #7396, where the current error message was decided: they will hurt. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12146#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler