#5481: Associated type defaults + MultiParamTypeClasses error
----------------------------------------+-----------------------------------
  Reporter:  illissius                  |          Owner:                  
      Type:  bug                        |         Status:  closed          
  Priority:  normal                     |      Milestone:                  
 Component:  Compiler                   |        Version:  7.3             
Resolution:  fixed                      |       Keywords:                  
  Testcase:                             |      Blockedby:                  
Difficulty:                             |             Os:  Unknown/Multiple
  Blocking:                             |   Architecture:  Unknown/Multiple
   Failure:  GHC rejects valid program  |  
----------------------------------------+-----------------------------------

Comment(by simonpj):

 But if you said
 {{{
 instance Foo [a] [b]
 }}}
 you'd generate the bogus instance
 {{{
 instance Foo [a] [b] where
   type X [a] = [b]
   type Y [b] = [a]
 }}}
 I think that defaults should always generate correct code. At lesat that's
 the conservative choice.

 Simon

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