[commit: ghc] master: Implement #5462 (deriving clause for arbitrary classes) (7ed482d)

git at git.haskell.org git at git.haskell.org
Fri Nov 21 04:44:02 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/7ed482d909556c1b969185921e27e3fe30c2fe86/ghc

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

commit 7ed482d909556c1b969185921e27e3fe30c2fe86
Author: Jose Pedro Magalhaes <jpm at cs.ox.ac.uk>
Date:   Thu Nov 20 22:41:28 2014 -0600

    Implement #5462 (deriving clause for arbitrary classes)
    
    Summary: (this has been submitted on behalf on @dreixel)
    
    Reviewers: simonpj, hvr, austin
    
    Reviewed By: simonpj, austin
    
    Subscribers: goldfire, thomie, carter, dreixel
    
    Differential Revision: https://phabricator.haskell.org/D476
    
    GHC Trac Issues: #5462


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

7ed482d909556c1b969185921e27e3fe30c2fe86
 compiler/basicTypes/BasicTypes.lhs                 |  1 +
 compiler/main/DynFlags.hs                          |  2 +
 compiler/typecheck/TcDeriv.lhs                     | 84 ++++++++++++++++-----
 compiler/typecheck/TcGenDeriv.lhs                  | 27 ++++++-
 docs/users_guide/flags.xml                         |  7 ++
 docs/users_guide/glasgow_exts.xml                  | 26 ++++++-
 testsuite/tests/driver/T4437.hs                    |  1 +
 testsuite/tests/generics/GEnum/Enum.hs             | 87 ++++++++++++++++++++++
 testsuite/tests/generics/GEq/GEq1A.hs              |  3 +-
 testsuite/tests/generics/T5462No1.hs               | 27 +++++++
 testsuite/tests/generics/T5462No1.stderr           | 20 +++++
 testsuite/tests/generics/T5462Yes1.hs              | 48 ++++++++++++
 testsuite/tests/generics/T5462Yes1.stdout          |  1 +
 testsuite/tests/generics/T5462Yes2.hs              | 37 +++++++++
 .../T5149.stdout => generics/T5462Yes2.stdout}     |  0
 testsuite/tests/generics/all.T                     | 12 ++-
 testsuite/tests/module/mod53.stderr                |  1 +
 17 files changed, 357 insertions(+), 27 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 7ed482d909556c1b969185921e27e3fe30c2fe86


More information about the ghc-commits mailing list