[GHC] #11112: Error message for accidentally using -> instead of =>

GHC ghc-devs at haskell.org
Sun Nov 22 11:12:31 UTC 2015


#11112: Error message for accidentally using -> instead of =>
-------------------------------------+-------------------------------------
        Reporter:  JulesBean         |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  typecheck/should_fail/tcfail057
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * testcase:   => typecheck/should_fail/tcfail057


Comment:

 In HEAD, the `GHC.Prim.` bit is gone:
 {{{
     Expected a type, but ‘Ord s’ has kind ‘Constraint’
     In the type signature for ‘Test.sort’:
       Test.sort :: Ord s -> [s] -> [s]
 }}}

 @JulesBean: what do you think about this error message?

 The last real change to these error messages was made in commit
 8bc6c4a613b5d16118469248cfb8025a5175a174:
 {{{
 Author: Simon Peyton Jones <simonpj at microsoft.com>
 Date:   Fri Oct 19 02:20:12 2012 +0100

     Improvements to kind error messages, mainly

     Also some expected/actual messages are now the right way round
 }}}

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


More information about the ghc-tickets mailing list