[commit: testsuite] master: test Trac #7800 (edf6a82)

git at git.haskell.org git at git.haskell.org
Fri Sep 20 16:38:28 CEST 2013


Repository : ssh://git@git.haskell.org/testsuite

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/edf6a82c6c88fe790218a40b048251b7e0e88098/testsuite

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

commit edf6a82c6c88fe790218a40b048251b7e0e88098
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Sep 20 15:30:03 2013 +0100

    test Trac #7800


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

edf6a82c6c88fe790218a40b048251b7e0e88098
 tests/deriving/should_fail/T7800.hs     |    7 +++++++
 tests/deriving/should_fail/T7800.stderr |    6 ++++++
 tests/deriving/should_fail/T7800a.hs    |    4 ++++
 tests/deriving/should_fail/all.T        |    1 +
 4 files changed, 18 insertions(+)

diff --git a/tests/deriving/should_fail/T7800.hs b/tests/deriving/should_fail/T7800.hs
new file mode 100644
index 0000000..9f190cf
--- /dev/null
+++ b/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/tests/deriving/should_fail/T7800.stderr b/tests/deriving/should_fail/T7800.stderr
new file mode 100644
index 0000000..10c790a
--- /dev/null
+++ b/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/tests/deriving/should_fail/T7800a.hs b/tests/deriving/should_fail/T7800a.hs
new file mode 100644
index 0000000..22f1305
--- /dev/null
+++ b/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/tests/deriving/should_fail/all.T b/tests/deriving/should_fail/all.T
index 607ffa3..8b90e74 100644
--- a/tests/deriving/should_fail/all.T
+++ b/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',''])




More information about the ghc-commits mailing list