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

 Re:
 {{{
 With overlap allowed, it's clear that you can make different choices in
 different parts of the program.
 }}}
 I don't agree. While I can see that you would want to commit to an
 instance
 early for optimisation reasons, I think you should then fail when
 linking if it turns out that you would have made a different choice had
 all of the program's instances been available.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2356#comment:9>
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