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

git at git.haskell.org git at git.haskell.org
Fri Feb 20 09:18:22 UTC 2015


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

On branch  : wip/T9968
Link       : http://ghc.haskell.org/trac/ghc/changeset/2aac932750e197300bde9f28d2a36b938fb0540b/ghc

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

commit 2aac932750e197300bde9f28d2a36b938fb0540b
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.


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

2aac932750e197300bde9f28d2a36b938fb0540b
 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 2aac932750e197300bde9f28d2a36b938fb0540b


More information about the ghc-commits mailing list