summaryrefslogtreecommitdiff
path: root/testsuite/tests/stranal/should_compile/fun.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/stranal/should_compile/fun.hs')
-rw-r--r--testsuite/tests/stranal/should_compile/fun.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/stranal/should_compile/fun.hs b/testsuite/tests/stranal/should_compile/fun.hs
new file mode 100644
index 0000000000..5bab460f3f
--- /dev/null
+++ b/testsuite/tests/stranal/should_compile/fun.hs
@@ -0,0 +1,6 @@
+module Test where
+data Fun = MkFun (Fun -> Fun)
+data LList a = Nill | Conss a (LList a)
+
+g :: Fun -> Fun
+g f = f