[GHC] #12371: Error message, room for improvement

GHC ghc-devs at haskell.org
Wed Jul 20 12:11:22 UTC 2016


#12371: Error message, room for improvement
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  bug               |               Status:  merge
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  TypeApplications
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by simonpj):

 * status:  new => merge


Comment:

 Fixed in HEAD by
 {{{
 commit e38c07bf5ceb8f50fa5110b70b3b83f0ce1358ba
 Author: Matthew Pickering <matthewtpickering at gmail.com>
 Date:   Thu Feb 25 15:51:46 2016 +0100

     Improve accuracy of suggestion to use TypeApplications

     The suggestion only makes sense when we try
     to use an as pattern in an expression context.

     It is misleading in the case of a lazy pattern and
     view pattern.
 }}}
 May be worth merging?

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


More information about the ghc-tickets mailing list