summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T4325.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T4325.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/T4325.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T4325.hs b/testsuite/tests/deriving/should_compile/T4325.hs
new file mode 100644
index 0000000000..68ab81744b
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T4325.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE DatatypeContexts #-}
+
+module T4325 where
+
+data Ord a => Heap a b = Empty | Node a b [Heap a b]
+ deriving Eq
+