summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/generics/cannotDoRep2.hs
diff options
context:
space:
mode:
authorJose Pedro Magalhaes <jpm@cs.uu.nl>2011-05-02 13:20:05 +0200
committerJose Pedro Magalhaes <jpm@cs.uu.nl>2011-05-02 13:20:05 +0200
commit69cc9a593f13f6739b090096152ebe9f46de061c (patch)
tree0a9d4ce2691b495a3fcb651daed6b42997039263 /testsuite/tests/ghc-regress/generics/cannotDoRep2.hs
parenta07c8a4f3fd020c533e988c1b5c9d64357432a12 (diff)
downloadhaskell-69cc9a593f13f6739b090096152ebe9f46de061c.tar.gz
Add some tests for the new generic deriving mechanism.
Diffstat (limited to 'testsuite/tests/ghc-regress/generics/cannotDoRep2.hs')
-rw-r--r--testsuite/tests/ghc-regress/generics/cannotDoRep2.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-regress/generics/cannotDoRep2.hs b/testsuite/tests/ghc-regress/generics/cannotDoRep2.hs
new file mode 100644
index 0000000000..05161ab302
--- /dev/null
+++ b/testsuite/tests/ghc-regress/generics/cannotDoRep2.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE DeriveRepresentable #-}
+{-# LANGUAGE StandaloneDeriving #-}
+{-# LANGUAGE GADTs #-}
+
+module ShouldFail2 where
+
+import GHC.Generics
+
+-- We do not support GADTs
+data Term a where
+ Int :: Term Int
+
+deriving instance Representable0 (Term a)