summaryrefslogtreecommitdiff
path: root/testsuite/tests/arrows/should_fail/arrowfail003.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/arrows/should_fail/arrowfail003.hs')
-rw-r--r--testsuite/tests/arrows/should_fail/arrowfail003.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/arrows/should_fail/arrowfail003.hs b/testsuite/tests/arrows/should_fail/arrowfail003.hs
new file mode 100644
index 0000000000..2f8cfeeaed
--- /dev/null
+++ b/testsuite/tests/arrows/should_fail/arrowfail003.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE Arrows #-}
+-- Arrow commands where an expression is expected
+
+module ShouldFail where
+
+import Control.Arrow
+
+foo = returnA -< []
+bar = (|zeroArrow|)