[commit: ghc] master: Implement poly-kinded Typeable (72b0ba0)

José Pedro Magalhães jpm at cs.uu.nl
Tue Feb 12 11:38:53 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/72b0ba09542400843a79f2e00a933ed6ea39698b

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

commit 72b0ba09542400843a79f2e00a933ed6ea39698b
Author: Jose Pedro Magalhaes <jpm at cs.ox.ac.uk>
Date:   Thu Feb 7 13:51:29 2013 +0000

    Implement poly-kinded Typeable
    
    This patch makes the Data.Typeable.Typeable class work with arguments of any
    kind. In particular, this removes the Typeable1..7 class hierarchy, greatly
    simplyfing the whole Typeable story. Also added is the AutoDeriveTypeable
    language extension, which will automatically derive Typeable for all types and
    classes declared in that module. Since there is now no good reason to give
    handwritten instances of the Typeable class, those are ignored (for backwards
    compatibility), and a warning is emitted.
    
    The old, kind-* Typeable class is now called OldTypeable, and lives in the
    Data.OldTypeable module. It is deprecated, and should be removed in some future
    version of GHC.

 compiler/hsSyn/HsExpr.lhs-boot    |   19 +++++--
 compiler/hsSyn/HsPat.lhs-boot     |    8 ++-
 compiler/main/DynFlags.hs         |   10 +++-
 compiler/prelude/PrelNames.lhs    |   66 +++++++++++++++++---------
 compiler/typecheck/TcDeriv.lhs    |   94 +++++++++++++++++++++++++++++--------
 compiler/typecheck/TcGenDeriv.lhs |   66 ++++++++++++++++++++++----
 compiler/typecheck/TcInstDcls.lhs |   39 +++++++++++++---
 docs/users_guide/flags.xml        |   14 ++++++
 docs/users_guide/glasgow_exts.xml |   26 +++++-----
 docs/users_guide/using.xml        |   18 ++++++-
 10 files changed, 277 insertions(+), 83 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 72b0ba09542400843a79f2e00a933ed6ea39698b



More information about the ghc-commits mailing list