summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics/GenCannotDoRep1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/generics/GenCannotDoRep1.hs')
-rw-r--r--testsuite/tests/generics/GenCannotDoRep1.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/generics/GenCannotDoRep1.hs b/testsuite/tests/generics/GenCannotDoRep1.hs
new file mode 100644
index 0000000000..98ad108dbf
--- /dev/null
+++ b/testsuite/tests/generics/GenCannotDoRep1.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE DeriveGeneric, DatatypeContexts #-}
+
+module CannotDoRep1 where
+
+import GHC.Generics
+
+-- We do not support datatypes with context
+data (Show a) => Context a = Context a deriving Generic