diff options
author | Jose Pedro Magalhaes <jpm@cs.ox.ac.uk> | 2013-02-07 13:59:51 +0000 |
---|---|---|
committer | Jose Pedro Magalhaes <jpm@cs.ox.ac.uk> | 2013-02-12 08:44:07 +0000 |
commit | 94d8b995aeca1b2fcee9467a0f2bdf0d9dc64069 (patch) | |
tree | 38d7b675254bbb238d0d7478b5b7b2cfb610b898 /testsuite/tests/safeHaskell/unsafeLibs/BadImport03.hs | |
parent | dc30d9834829a5e68abef5ee9b8b628f68f0b871 (diff) | |
download | haskell-94d8b995aeca1b2fcee9467a0f2bdf0d9dc64069.tar.gz |
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.
Diffstat (limited to 'testsuite/tests/safeHaskell/unsafeLibs/BadImport03.hs')
-rw-r--r-- | testsuite/tests/safeHaskell/unsafeLibs/BadImport03.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/safeHaskell/unsafeLibs/BadImport03.hs b/testsuite/tests/safeHaskell/unsafeLibs/BadImport03.hs index 9b8a5651a9..9c06d34bab 100644 --- a/testsuite/tests/safeHaskell/unsafeLibs/BadImport03.hs +++ b/testsuite/tests/safeHaskell/unsafeLibs/BadImport03.hs @@ -5,7 +5,7 @@ -- Now using SAFE though so will fail module Main where -import Data.Typeable +import Data.OldTypeable import BadImport03_A |