summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod47.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/module/mod47.hs')
-rw-r--r--testsuite/tests/module/mod47.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod47.hs b/testsuite/tests/module/mod47.hs
new file mode 100644
index 0000000000..f0f487dda2
--- /dev/null
+++ b/testsuite/tests/module/mod47.hs
@@ -0,0 +1,7 @@
+-- !!! Instance context can't satisfy class-hierarchy constraint
+module M where
+class Foo a
+class Foo a => Bar a
+instance Num a => Foo [a]
+instance (Eq a, Enum a) => Bar [a]
+