summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read026.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read026.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read026.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read026.hs b/testsuite/tests/parser/should_compile/read026.hs
new file mode 100644
index 0000000000..0ea695d373
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read026.hs
@@ -0,0 +1,6 @@
+module ShouldCompile where
+
+(<>) :: (a -> Maybe b) -> (b -> Maybe c) -> (a -> Maybe c)
+(m1 <> m2) a1 = case m1 a1 of
+ Nothing -> Nothing
+ Just a2 -> m2 a2