summaryrefslogtreecommitdiff
path: root/testsuite/tests/programs/barton-mangler-bug/Bug.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/programs/barton-mangler-bug/Bug.hs')
-rw-r--r--testsuite/tests/programs/barton-mangler-bug/Bug.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/programs/barton-mangler-bug/Bug.hs b/testsuite/tests/programs/barton-mangler-bug/Bug.hs
new file mode 100644
index 0000000000..0f75dffc94
--- /dev/null
+++ b/testsuite/tests/programs/barton-mangler-bug/Bug.hs
@@ -0,0 +1,6 @@
+module Bug where
+
+data Eq a => Foo a = Foo { x :: a }
+
+foo :: Foo Int
+foo = Foo{}