summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/drv007.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv007.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/drv007.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv007.hs b/testsuite/tests/deriving/should_compile/drv007.hs
new file mode 100644
index 0000000000..22da5b4aa3
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/drv007.hs
@@ -0,0 +1,6 @@
+-- !!! deriving Ord on d. type with a single nullary constructor.
+-- (from ghc-2.10 panic - as reported by Sergey Mechveliani <mechvel@botik.ru>)
+--
+module ShouldSucceed where
+
+data D = D deriving (Eq,Ord)