diff options
Diffstat (limited to 'testsuite/tests/parser/should_compile/BlockArgumentsArrowCmds.hs')
-rw-r--r-- | testsuite/tests/parser/should_compile/BlockArgumentsArrowCmds.hs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/BlockArgumentsArrowCmds.hs b/testsuite/tests/parser/should_compile/BlockArgumentsArrowCmds.hs new file mode 100644 index 0000000000..89ac332d31 --- /dev/null +++ b/testsuite/tests/parser/should_compile/BlockArgumentsArrowCmds.hs @@ -0,0 +1,22 @@ +{-# LANGUAGE Arrows, BlockArguments #-} + +module BlockArgumentsArrowCmds where + +import Control.Arrow + +cmdLam :: () -> () +cmdLam = proc () -> (| id \() -> () >- returnA |) () + +cmdCase :: () -> () +cmdCase = proc () -> (| id case () of + () -> () >- returnA |) + +cmdIf :: () -> () +cmdIf = proc () -> (| id if True then () >- returnA else () >- returnA |) + +cmdLet :: () -> () +cmdLet = proc () -> (| id let x = () in x >- returnA |) + +cmdDo :: () -> () +cmdDo = proc () -> (| id do + () >- returnA |) |