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

GHC ghc-devs at haskell.org
Wed Nov 6 06:04:22 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 carter):

 GHC should give an erro about multiple class instances, but I guess the
 renamer phase hits the constants in the instance heads before that
 multiple declaration conflict would happen.

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


More information about the ghc-tickets mailing list