summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/drv009.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv009.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/drv009.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv009.hs b/testsuite/tests/deriving/should_compile/drv009.hs
new file mode 100644
index 0000000000..4ac069d30c
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/drv009.hs
@@ -0,0 +1,6 @@
+-- !!! deriving Ix on d. type with one constructor
+module ShouldSucceed where
+
+import Data.Ix
+
+data Pair a b = Pair a b deriving (Show, Ord, Eq, Ix)