#2356: GHC accepts multiple instances for the same type in different modules
-------------------------+--------------------------------------------------
    Reporter:  claus     |        Owner:         
        Type:  bug       |       Status:  new    
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.8.2  
    Severity:  normal    |   Resolution:         
    Keywords:            |     Testcase:         
Architecture:  Unknown   |           Os:  Unknown
-------------------------+--------------------------------------------------
Changes (by guest):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 This really surprises me.  Why doesn't think produce a link error?
 Each instance declaration should give rise to a global symbol uniquely
 determined by the class and the type, I'd presume.  And when they meet
 there will be a clash.
 Obviously I'm wrong, as this (scary) example shows.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2356#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to