summaryrefslogtreecommitdiff
path: root/testsuite/tests/arrows/should_fail/arrowfail004.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/arrows/should_fail/arrowfail004.hs')
-rw-r--r--testsuite/tests/arrows/should_fail/arrowfail004.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/arrows/should_fail/arrowfail004.hs b/testsuite/tests/arrows/should_fail/arrowfail004.hs
new file mode 100644
index 0000000000..3e0835a0e4
--- /dev/null
+++ b/testsuite/tests/arrows/should_fail/arrowfail004.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE Arrows, ExistentialQuantification #-}
+
+-- Trac #1662
+
+module ShouldFail where
+
+import Control.Arrow
+
+data T = forall a. T a
+
+panic :: (Arrow arrow) => arrow T T
+panic = proc (T x) -> do returnA -< T x \ No newline at end of file