[commit: ghc] wip/T9968: Make the implementation of DeriveAnyClass more robust (8e5f78d)

git at git.haskell.org git at git.haskell.org
Tue Feb 24 08:57:56 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T9968
Link       : http://ghc.haskell.org/trac/ghc/changeset/8e5f78df14f1a54a9aae2d8d70d52ebb08aa4d95/ghc

>---------------------------------------------------------------

commit 8e5f78df14f1a54a9aae2d8d70d52ebb08aa4d95
Author: Jose Pedro Magalhaes <jpm at cs.ox.ac.uk>
Date:   Fri Feb 20 09:12:55 2015 +0000

    Make the implementation of DeriveAnyClass more robust
    
    Let DeriveAnyClass properly handle multiparameter type classes.
    Also use a new strategy for inferring constraints for
    derived classes.
    
    This fixes #9968 and #9821.


>---------------------------------------------------------------

8e5f78df14f1a54a9aae2d8d70d52ebb08aa4d95
 compiler/typecheck/TcDeriv.hs       | 265 +++++++++++++++++++++++++-----------
 compiler/typecheck/TcGenDeriv.hs    | 194 ++++++++++++--------------
 compiler/typecheck/TcGenGenerics.hs |  93 ++++++++++---
 3 files changed, 345 insertions(+), 207 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 8e5f78df14f1a54a9aae2d8d70d52ebb08aa4d95


More information about the ghc-commits mailing list