Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/156ec95a8e92cc8314db134311d2fbb0269f0679 >--------------------------------------------------------------- commit 156ec95a8e92cc8314db134311d2fbb0269f0679 Author: Jose Pedro Magalhaes <[email protected]> Date: Thu Jun 21 12:23:01 2012 +0100 Allow deriving Generic1 This completes the support for generic programming introduced in GHC 7.2. Generic1 allows defining generic functions that operate on type containers, such as `fmap`, for instance. Along the way we have fixed #5936 and #5939, allowing deriving Generic/Generic1 for data families, and disallowing deriving Generic/Generic1 for instantiated types. Most of this patch is Nicolas Frisby's work. compiler/basicTypes/OccName.lhs | 5 +- compiler/prelude/PrelNames.lhs | 13 +- compiler/typecheck/TcDeriv.lhs | 158 +++++++---- compiler/typecheck/TcGenGenerics.lhs | 508 ++++++++++++++++++++++++++-------- 4 files changed, 518 insertions(+), 166 deletions(-) Diff suppressed because of size. To see it, use: git show 156ec95a8e92cc8314db134311d2fbb0269f0679 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
