[GHC] #16050: Instance resolution error message unclear, because of missing kind information

GHC ghc-devs at haskell.org
Mon Dec 17 08:28:30 UTC 2018


#16050: Instance resolution error message unclear, because of missing kind
information
-------------------------------------+-------------------------------------
        Reporter:  chessai           |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.6.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I agree.

 For equality mis-matches, GHC already tries not to report `T Int` does not
 match `T Int`, by seeing if the only differences are in the kinds.  (The
 logic is in `TcErrors.pprWithExplicitKindsWhenMismatch`.)

 It would be tiresome, but not hard, to do the same for instance matching,
 printing the kinds if the only reason for the lack of a match is in the
 kinds.

 Any volunteers?

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


More information about the ghc-tickets mailing list