summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/drv010.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv010.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/drv010.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv010.hs b/testsuite/tests/deriving/should_compile/drv010.hs
new file mode 100644
index 0000000000..1a3f9dc33a
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/drv010.hs
@@ -0,0 +1,4 @@
+-- !!! deriving Enum on d. type with nullary constructors
+module ShouldSucceed where
+
+data AD = A | B | C | D deriving (Enum)