[commit: testsuite] master: Implement poly-kinded Typeable (b89b2bb)
José Pedro Magalhães
jpm at cs.uu.nl
Tue Feb 12 11:44:11 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/b89b2bb7784f2122ddaa4a603a57333ee6f6235c
>---------------------------------------------------------------
commit b89b2bb7784f2122ddaa4a603a57333ee6f6235c
Author: Jose Pedro Magalhaes <jpm at cs.ox.ac.uk>
Date: Thu Feb 7 13:59:51 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.
tests/annotations/should_fail/annfail06.hs | 2 +-
tests/deriving/should_compile/T2378.hs | 2 +-
tests/deriving/should_compile/T3965.hs | 11 +++--------
tests/deriving/should_compile/T4302.hs | 2 +-
tests/deriving/should_compile/all.T | 1 +
tests/deriving/should_compile/drv021.hs | 2 +-
tests/deriving/should_compile/drv021.stderr | 13 +++++++++++++
.../drvfail010.hs => should_compile/drv022.hs} | 6 +++---
tests/deriving/should_fail/T2604.stderr | 4 ++--
tests/deriving/should_fail/all.T | 1 -
tests/deriving/should_fail/drvfail010.stderr | 11 -----------
tests/deriving/should_fail/drvfail010.stderr-hugs | 1 -
tests/deriving/should_fail/drvfail014.hs | 2 +-
tests/driver/T4437.hs | 3 ++-
tests/indexed-types/should_compile/T1769.hs | 2 +-
tests/perf/should_run/T3245.hs | 7 ++-----
tests/rename/should_compile/T4003A.hs-boot | 2 +-
tests/safeHaskell/ghci/p15.script | 2 +-
tests/safeHaskell/ghci/p15.stderr | 8 ++++++++
.../safeHaskell/safeInfered/UnsafeInfered07.stderr | 18 ++++++++++++++++++
tests/safeHaskell/safeInfered/UnsafeInfered07_A.hs | 2 +-
tests/safeHaskell/safeLanguage/SafeLang13.hs | 2 +-
tests/safeHaskell/safeLanguage/SafeLang14.hs | 2 +-
tests/safeHaskell/unsafeLibs/BadImport02.hs | 2 +-
tests/safeHaskell/unsafeLibs/BadImport03.hs | 2 +-
tests/typecheck/should_compile/T2433.hs | 4 ++--
26 files changed, 67 insertions(+), 47 deletions(-)
Diff suppressed because of size. To see it, use:
git show b89b2bb7784f2122ddaa4a603a57333ee6f6235c
More information about the ghc-commits
mailing list