summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/drv004.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv004.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/drv004.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv004.hs b/testsuite/tests/deriving/should_compile/drv004.hs
new file mode 100644
index 0000000000..324a7f81d4
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/drv004.hs
@@ -0,0 +1,9 @@
+-- !!! simple example of deriving Ord and Eq simultaneously
+--
+module ShouldSucceed where
+
+data Foo a b c
+ = C1 a Int
+ | C2 b Double
+ | C3 c String
+ deriving (Eq, Ord)