summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T16288A.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/simplCore/should_compile/T16288A.hs')
-rw-r--r--testsuite/tests/simplCore/should_compile/T16288A.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T16288A.hs b/testsuite/tests/simplCore/should_compile/T16288A.hs
new file mode 100644
index 0000000000..c6a52bff33
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T16288A.hs
@@ -0,0 +1,17 @@
+module T16288A where
+
+import T16288C
+
+data License
+
+class Pretty a where
+ pretty :: a -> Doc
+
+instance Pretty License where
+ pretty _ = pretV
+
+bar :: (Pretty a) => a -> Doc
+bar w = foo (pretty (u w w w w))
+
+u :: a -> a -> a -> a -> a
+u = u