summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/drv006.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv006.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/drv006.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv006.hs b/testsuite/tests/deriving/should_compile/drv006.hs
new file mode 100644
index 0000000000..62f2cbcf67
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/drv006.hs
@@ -0,0 +1,9 @@
+-- !!! simple examples of deriving Ix
+--
+module ShouldSucceed where
+import Data.Ix
+
+data Foo = Foo1 | Foo2 | Foo3 | Foo4 | Foo5 | Foo6 | Foo7 | Foo8
+ deriving (Eq, Ord, Ix, Show)
+
+data Bar a b = MkBar a Int b Integer a