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

git at git.haskell.org git at git.haskell.org
Tue Nov 18 17:19:56 UTC 2014


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

On branch  : wip/GenericsMetaData2
Link       : http://ghc.haskell.org/trac/ghc/changeset/013f62b5058797fb1ecd4449fe572a1f5204158e/ghc

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

commit 013f62b5058797fb1ecd4449fe572a1f5204158e
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


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

013f62b5058797fb1ecd4449fe572a1f5204158e
 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           |   5 +-
 testsuite/tests/generics/GenDerivOutput.stderr    | 120 ++++----
 testsuite/tests/generics/GenDerivOutput1_0.stderr |  48 ++--
 testsuite/tests/generics/GenDerivOutput1_1.stderr | 254 ++++++++---------
 10 files changed, 509 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 013f62b5058797fb1ecd4449fe572a1f5204158e


More information about the ghc-commits mailing list