#3714: Improve error message if an associated family declaration has excess
parameters
---------------------------+------------------------------------------------
  Reporter:  simonpj       |          Owner:  chak            
      Type:  bug           |         Status:  new             
  Priority:  normal        |      Milestone:                  
 Component:  Compiler      |        Version:  6.10.4          
Resolution:                |       Keywords:                  
Difficulty:                |             Os:  Unknown/Multiple
  Testcase:                |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------
Comment (by simonpj):

 Oh yes, silly me.  The point is that in a class instance declaration you
 only get to write ''one'' associated type instance declaration, so there
 is no point in having a type index that is not also a class index.

 The syntax for distinguishing type ''indices'' from ''type parameters'' is
 horrible, but it's hard to think of something better.

 Simon

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