[GHC] #8506: misleading error message for duplicate type class instances

GHC ghc-devs at haskell.org
Wed Nov 6 08:56:36 UTC 2013


#8506: misleading error message for duplicate type class instances
--------------------------------------------+------------------------------
        Reporter:  carter                   |            Owner:
            Type:  bug                      |           Status:  new
        Priority:  normal                   |        Milestone:
       Component:  Compiler (Type checker)  |          Version:  7.6.3
      Resolution:                           |         Keywords:
Operating System:  Unknown/Multiple         |     Architecture:
 Type of failure:  None/Unknown             |  Unknown/Multiple
       Test Case:                           |       Difficulty:  Unknown
        Blocking:                           |       Blocked By:
                                            |  Related Tickets:
--------------------------------------------+------------------------------

Comment (by simonpj):

 You are both right.  (Poor error message, but it comes from the parser.)

 Is this better?
 {{{
 T8506.hs:54:16:
     Unexpected type ‛Z’
     In the class declaration for ‛Shapable’
     A class declaration should have form
       class Shapable a b c where ...
 }}}
 Simon

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


More information about the ghc-tickets mailing list