summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/drvfail014.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_fail/drvfail014.hs')
-rw-r--r--testsuite/tests/deriving/should_fail/drvfail014.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/drvfail014.hs b/testsuite/tests/deriving/should_fail/drvfail014.hs
new file mode 100644
index 0000000000..117b7d54af
--- /dev/null
+++ b/testsuite/tests/deriving/should_fail/drvfail014.hs
@@ -0,0 +1,13 @@
+{-# OPTIONS_GHC -XDeriveDataTypeable -XStandaloneDeriving #-}
+
+-- See Trac #1825
+
+module ShouldFail where
+import Data.OldTypeable
+
+data T1 a = T1 a deriving( Typeable1 )
+
+data T2 a b = T2 a b
+
+deriving instance (Typeable a, Typeable b) => Typeable (T2 a b)
+ -- c.f. drv021.hs