Sun Apr  2 14:59:11 PDT 2006  [EMAIL PROTECTED]
  * Improve newtype deriving
  
  Ross Paterson pointed out a useful generalisation of GHC's 
  newtype-deriving mechanism.  This implements it.  The idea
  is to allow
        newtype Wrap m a = Wrap (m a) deriving (Monad, Eq)
  where the representation type doesn't start with a type
  constructor.
  
  Actually GHC already *did* implement this, but the eta-ok
  check in TcDeriv missed a case, so there was a lurking bug.
  
  This patches fixes the documentation too.  drvrun019 tests.
  
  

    M ./compiler/typecheck/TcDeriv.lhs -4 +5
    M ./docs/users_guide/glasgow_exts.xml -8 +5
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to