summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/BlockArgumentsLambdaCase.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/BlockArgumentsLambdaCase.hs')
-rw-r--r--testsuite/tests/parser/should_compile/BlockArgumentsLambdaCase.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/BlockArgumentsLambdaCase.hs b/testsuite/tests/parser/should_compile/BlockArgumentsLambdaCase.hs
new file mode 100644
index 0000000000..8e336c28f4
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/BlockArgumentsLambdaCase.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE BlockArguments, LambdaCase #-}
+
+module BlockArgumentsLambdaCase where
+
+import Control.Monad
+
+foo' :: IO ()
+foo' = do
+ forM [Just 3, Nothing] \case
+ Just 3 -> print 3
+ _ -> print 5
+
+ return ()