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