diff options
Diffstat (limited to 'testsuite/tests/arrows/should_compile/arrowdo2.hs')
-rw-r--r-- | testsuite/tests/arrows/should_compile/arrowdo2.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/arrows/should_compile/arrowdo2.hs b/testsuite/tests/arrows/should_compile/arrowdo2.hs new file mode 100644 index 0000000000..3562dc23b9 --- /dev/null +++ b/testsuite/tests/arrows/should_compile/arrowdo2.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE Arrows #-} + +module ShouldCompile where + +import Control.Arrow + +f :: Arrow a => a (Int,Int) Int +f = proc (x,y) -> do + let z = x*y + returnA -< y+z |