[GHC] #9173: Better type error messages

GHC ghc-devs at haskell.org
Mon Jun 12 01:36:18 UTC 2017


#9173: Better type error messages
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.8.2
      Resolution:                    |             Keywords:
                                     |  TypeErrorMessages
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:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 I like the extension of rwbarton's proposal from comment:11,
 {{{
    Couldn't match actual type β€˜[Char]’ with type β€˜Int’ expected by context
    In the expression: "Howdy!"
 }}}

 Seems like a simple yet clear change.

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


More information about the ghc-tickets mailing list