[GHC] #12146: syntax repair suggestion is too eager to suggest TemplateHaskell

GHC ghc-devs at haskell.org
Thu Jun 2 17:41:37 UTC 2016


#12146: syntax repair suggestion is too eager to suggest TemplateHaskell
-------------------------------------+-------------------------------------
           Reporter:  j.waldmann     |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 On input `ipmort Data.Monoid`, ghc's suggestion is

 {{{
     Parse error: naked expression at top level
     Perhaps you intended to use TemplateHaskell
 }}}

 Apart from the nudity: the suggestion is unreasonable for beginners, and
 unnecessary for experts.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12146>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list