Tue Mar  9 09:35:55 PST 2010  [email protected]
  * Fix Trac #1954: newtype deriving caused 'defined but not used' error
  
  We were getting a bogus claim that a newtype "data constructor" was
  unused.  The fix is easy, although I had to add a field to the constructor
  TcEnv.NewTypeDerived
  
  See Note [Newtype deriving and unused constructors] in TcDeriv

    M ./compiler/typecheck/TcDeriv.lhs -3 +25
    M ./compiler/typecheck/TcEnv.lhs -8 +15
    M ./compiler/typecheck/TcInstDcls.lhs -1 +1

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20100309173555-1287e-30bea4c383b71f1670e113ba04bdf01d87059216.gz

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

Reply via email to