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

git at git.haskell.org git at git.haskell.org
Tue Nov 11 17:44:50 UTC 2014


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

On branch  : wip/GenericsMetaData2
Link       : http://ghc.haskell.org/trac/ghc/changeset/97f706483316377bbc83910da354850f4b17ff68/ghc

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

commit 97f706483316377bbc83910da354850f4b17ff68
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


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

97f706483316377bbc83910da354850f4b17ff68
 compiler/prelude/PrelNames.lhs          |  71 ++++++--
 compiler/typecheck/TcDeriv.lhs          |  64 ++-----
 compiler/typecheck/TcGenDeriv.lhs       |  18 +-
 compiler/typecheck/TcGenGenerics.lhs    | 308 +++++++++-----------------------
 libraries/base/Data/Monoid.hs           |   1 +
 libraries/base/GHC/Generics.hs          | 190 ++++++++++++++++----
 testsuite/tests/generics/GShow/GShow.hs |   1 +
 7 files changed, 314 insertions(+), 339 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 97f706483316377bbc83910da354850f4b17ff68


More information about the ghc-commits mailing list