summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-09-20 15:30:03 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2013-09-20 15:38:18 +0100
commitb1391024ea9ba209841435773fa9299befaecc6e (patch)
treee33229809796322c3c31b994594f65fd4c5b6f2a /testsuite/tests/deriving
parentfd4e4ab321d798b1e06e56cadef01c3ec1e7a83d (diff)
downloadhaskell-b1391024ea9ba209841435773fa9299befaecc6e.tar.gz
test Trac #7800
Diffstat (limited to 'testsuite/tests/deriving')
-rw-r--r--testsuite/tests/deriving/should_fail/T7800.hs7
-rw-r--r--testsuite/tests/deriving/should_fail/T7800.stderr6
-rw-r--r--testsuite/tests/deriving/should_fail/T7800a.hs4
-rw-r--r--testsuite/tests/deriving/should_fail/all.T1
4 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/T7800.hs b/testsuite/tests/deriving/should_fail/T7800.hs
new file mode 100644
index 0000000000..9f190cfa51
--- /dev/null
+++ b/testsuite/tests/deriving/should_fail/T7800.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE StandaloneDeriving, DeriveDataTypeable #-}
+module T7800 where
+
+import T7800a
+import Data.Typeable
+
+deriving instance Typeable A
diff --git a/testsuite/tests/deriving/should_fail/T7800.stderr b/testsuite/tests/deriving/should_fail/T7800.stderr
new file mode 100644
index 0000000000..10c790a6da
--- /dev/null
+++ b/testsuite/tests/deriving/should_fail/T7800.stderr
@@ -0,0 +1,6 @@
+[1 of 2] Compiling T7800a ( T7800a.hs, T7800a.o )
+[2 of 2] Compiling T7800 ( T7800.hs, T7800.o )
+
+T7800.hs:7:1:
+ To make a Typeable instance of poly-kinded ‛A’, use XPolyKinds
+ In the stand-alone deriving instance for ‛Typeable A’
diff --git a/testsuite/tests/deriving/should_fail/T7800a.hs b/testsuite/tests/deriving/should_fail/T7800a.hs
new file mode 100644
index 0000000000..22f1305d2e
--- /dev/null
+++ b/testsuite/tests/deriving/should_fail/T7800a.hs
@@ -0,0 +1,4 @@
+{-# LANGUAGE PolyKinds #-}
+module T7800a where
+
+data A a \ No newline at end of file
diff --git a/testsuite/tests/deriving/should_fail/all.T b/testsuite/tests/deriving/should_fail/all.T
index 607ffa35f7..8b90e7438f 100644
--- a/testsuite/tests/deriving/should_fail/all.T
+++ b/testsuite/tests/deriving/should_fail/all.T
@@ -46,3 +46,4 @@ test('T1496', normal, compile_fail, [''])
test('T4846', normal, compile_fail, [''])
test('T7148', normal, compile_fail, [''])
test('T7148a', normal, compile_fail, [''])
+test('T7800', normal, multimod_compile_fail, ['T7800',''])