[GHC] #9605: Misleading error message with forgotten "do"

GHC ghc-devs at haskell.org
Fri Dec 5 01:27:32 UTC 2014


#9605: Misleading error message with forgotten "do"
-------------------------------------+-------------------------------------
              Reporter:  owst        |            Owner:  Yuras
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.8.3
  (Type checker)                     |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:  #7869
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:  D556        |
-------------------------------------+-------------------------------------
Changes (by Yuras):

 * owner:   => Yuras
 * differential:   => D556
 * component:  Compiler => Compiler (Type checker)
 * related:   => #7869


Comment:

 I prepared a patch to skip "but its type T has only two" part here, and
 report only inferred type. Any ideas how to improve the error message
 further?

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


More information about the ghc-tickets mailing list