summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics/GenCannotDoRep1_1.hs
diff options
context:
space:
mode:
authorJose Pedro Magalhaes <jpm@cs.ox.ac.uk>2012-06-21 12:13:33 +0100
committerJose Pedro Magalhaes <jpm@cs.ox.ac.uk>2012-06-21 12:13:49 +0100
commit686628d242e497a746d6272247445def6b6a2485 (patch)
tree772364e12390647df0a2bfae0b863c8daea60ef8 /testsuite/tests/generics/GenCannotDoRep1_1.hs
parent9d3bf7df0d059cb4b5273edd73a0eb9bb0a856eb (diff)
downloadhaskell-686628d242e497a746d6272247445def6b6a2485.tar.gz
Add tests for deriving Generic1
Most of these tests were written by Nicolas Frisby.
Diffstat (limited to 'testsuite/tests/generics/GenCannotDoRep1_1.hs')
-rw-r--r--testsuite/tests/generics/GenCannotDoRep1_1.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/generics/GenCannotDoRep1_1.hs b/testsuite/tests/generics/GenCannotDoRep1_1.hs
new file mode 100644
index 0000000000..9ac8fc6cd1
--- /dev/null
+++ b/testsuite/tests/generics/GenCannotDoRep1_1.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE DeriveGeneric, DatatypeContexts #-}
+
+module CannotDoRep1_1 where
+
+import GHC.Generics
+
+-- We do not support datatypes with context
+data (Show a) => Context a = Context a deriving Generic1