[commit: ghc] wip/GenericsMetaData2: Use TypeLits in the meta-data encoding of GHC.Generics (950b5f9)

git at git.haskell.org git at git.haskell.org
Sun Nov 23 17:51:14 UTC 2014


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

On branch  : wip/GenericsMetaData2
Link       : http://ghc.haskell.org/trac/ghc/changeset/950b5f9dc6efbb508fbf74f8ec81431f02395820/ghc

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

commit 950b5f9dc6efbb508fbf74f8ec81431f02395820
Author: Jose Pedro Magalhaes <jpm at cs.ox.ac.uk>
Date:   Thu Oct 2 08:38:05 2014 +0100

    Use TypeLits in the meta-data encoding of GHC.Generics
    
    The following wiki page contains more information about this:
    https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/GenericDeriving#Amoreconservativefirstapproachtothisproblem


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

950b5f9dc6efbb508fbf74f8ec81431f02395820
 compiler/prelude/PrelNames.lhs                    |  59 ++--
 compiler/typecheck/TcDeriv.lhs                    |  64 +----
 compiler/typecheck/TcGenDeriv.lhs                 |  18 +-
 compiler/typecheck/TcGenGenerics.lhs              | 304 +++++---------------
 docs/users_guide/glasgow_exts.xml                 |  30 +-
 libraries/base/GHC/Generics.hs                    | 324 ++++++++++++----------
 testsuite/tests/generics/GShow/GShow.hs           |   4 +-
 testsuite/tests/generics/GenDerivOutput.stderr    | 120 ++++----
 testsuite/tests/generics/GenDerivOutput1_0.stderr |  48 ++--
 testsuite/tests/generics/GenDerivOutput1_1.stderr | 254 ++++++++---------
 10 files changed, 508 insertions(+), 717 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 950b5f9dc6efbb508fbf74f8ec81431f02395820


More information about the ghc-commits mailing list