Tue Oct 21 07:29:22 PDT 2008  [EMAIL PROTECTED]
  * Fix Trac #2668, and refactor TcDeriv
  
  TcDeriv deals with both standalone and ordinary 'deriving';
  and with both data types and 'newtype deriving'.  The result
  is really rather compilcated and ad hoc.  Ryan discovered
  #2668; this patch fixes that bug, and makes the internal interfces
  #more uniform.  Specifically, the business of knocking off 
  type arguments from the instance type until it matches the kind of the
  class, is now done by derivTyData, not mkNewTypeEqn, because the
  latter is shared with standalone derriving, whree the trimmed
  type application is what the user wrote.
  

    M ./compiler/typecheck/TcDeriv.lhs -103 +113

View patch online:
http://darcs.haskell.org/ghc-6.10/ghc/_darcs/patches/20081021142922-1287e-36f17d1e80042e416e15f47de85493f86e8a303a.gz

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to