summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/safeInfered
diff options
context:
space:
mode:
authorMichael Karg <mgoremeier@gmail.com>2014-10-18 15:50:48 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-10-18 16:23:20 +0200
commit7369d2595a8cceebe457a44c8400828f4df87ea0 (patch)
treeec48da655bf65389768d6fee4ae6ca325f3a4fdb /testsuite/tests/safeHaskell/safeInfered
parent612f3d120c65a461a4ad7f212d67bdae005f4975 (diff)
downloadhaskell-7369d2595a8cceebe457a44c8400828f4df87ea0.tar.gz
Remove obsolete Data.OldTypeable (#9639)
This finally removes the `Data.OldTypeable` module (which has been deprecated in 7.8), from `base`, compiler and testsuite. The deprecated `Typeable{1..7}` aliases in `Data.Typeable` are not removed yet in order to give existing code a bit more time to adapt. Reviewed By: hvr, dreixel Differential Revision: https://phabricator.haskell.org/D311
Diffstat (limited to 'testsuite/tests/safeHaskell/safeInfered')
-rw-r--r--testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.hs5
-rw-r--r--testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.stderr24
-rw-r--r--testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07_A.hs10
-rw-r--r--testsuite/tests/safeHaskell/safeInfered/all.T3
4 files changed, 0 insertions, 42 deletions
diff --git a/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.hs b/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.hs
deleted file mode 100644
index dd6a830239..0000000000
--- a/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.hs
+++ /dev/null
@@ -1,5 +0,0 @@
-{-# LANGUAGE Safe #-}
-module UnsafeInfered07 where
-
-import safe UnsafeInfered07_A
-
diff --git a/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.stderr b/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.stderr
deleted file mode 100644
index 153ba0f77e..0000000000
--- a/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07.stderr
+++ /dev/null
@@ -1,24 +0,0 @@
-[1 of 2] Compiling UnsafeInfered07_A ( UnsafeInfered07_A.hs, UnsafeInfered07_A.o )
-
-UnsafeInfered07_A.hs:4:1: Warning:
- Module ‘Data.OldTypeable’ is deprecated: Use Data.Typeable instead
-
-UnsafeInfered07_A.hs:8:10: Warning:
- In the use of type constructor or class ‘Typeable’
- (imported from Data.OldTypeable, but defined in Data.OldTypeable.Internal):
- Deprecated: "Use Data.Typeable.Internal instead"
-
-UnsafeInfered07_A.hs:8:10: Warning:
- In the use of type constructor or class ‘Typeable’
- (imported from Data.OldTypeable, but defined in Data.OldTypeable.Internal):
- Deprecated: "Use Data.Typeable.Internal instead"
-
-UnsafeInfered07_A.hs:9:16: Warning:
- In the use of ‘typeOf’
- (imported from Data.OldTypeable, but defined in Data.OldTypeable.Internal):
- Deprecated: "Use Data.Typeable.Internal instead"
-[2 of 2] Compiling UnsafeInfered07 ( UnsafeInfered07.hs, UnsafeInfered07.o )
-
-UnsafeInfered07.hs:4:1:
- UnsafeInfered07_A: Can't be safely imported!
- The module itself isn't safe.
diff --git a/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07_A.hs b/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07_A.hs
deleted file mode 100644
index 9bd6b452dd..0000000000
--- a/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered07_A.hs
+++ /dev/null
@@ -1,10 +0,0 @@
--- | Unsafe as hand crafts a typeable instance
-module UnsafeInfered07_A where
-
-import Data.OldTypeable
-
-data G = G Int
-
-instance Typeable G where
- typeOf _ = typeOf (undefined::Int)
-
diff --git a/testsuite/tests/safeHaskell/safeInfered/all.T b/testsuite/tests/safeHaskell/safeInfered/all.T
index a995c76c6d..887ff683a8 100644
--- a/testsuite/tests/safeHaskell/safeInfered/all.T
+++ b/testsuite/tests/safeHaskell/safeInfered/all.T
@@ -42,9 +42,6 @@ test('UnsafeInfered05',
test('UnsafeInfered06',
[ extra_clean(['UnsafeInfered06_A.hi', 'UnsafeInfered06_A.o']) ],
multimod_compile_fail, ['UnsafeInfered06', ''])
-test('UnsafeInfered07',
- [ extra_clean(['UnsafeInfered07_A.hi', 'UnsafeInfered07_A.o']) ],
- multimod_compile_fail, ['UnsafeInfered07', ''])
test('UnsafeInfered08',
[ extra_clean(['UnsafeInfered08_A.hi', 'UnsafeInfered08_A.o']) ],
multimod_compile_fail, ['UnsafeInfered08', ''])