summaryrefslogtreecommitdiff
path: root/testsuite/tests/arrows/should_compile/arrowapply2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/arrows/should_compile/arrowapply2.hs')
-rw-r--r--testsuite/tests/arrows/should_compile/arrowapply2.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/arrows/should_compile/arrowapply2.hs b/testsuite/tests/arrows/should_compile/arrowapply2.hs
new file mode 100644
index 0000000000..16cf2f3039
--- /dev/null
+++ b/testsuite/tests/arrows/should_compile/arrowapply2.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE Arrows #-}
+
+module ShouldCompile where
+
+import Control.Arrow
+
+f :: ArrowApply a => a (a Int Int,Int,Int) Int
+f = proc (x,y,z) -> x -<< 2+y
+
+g :: ArrowApply a => Int -> a (a Int Int,Int) Int
+g y = proc (x,z) -> x -<< 2+y