summaryrefslogtreecommitdiff
path: root/testsuite/tests/rebindable/T4851.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rebindable/T4851.hs')
-rw-r--r--testsuite/tests/rebindable/T4851.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rebindable/T4851.hs b/testsuite/tests/rebindable/T4851.hs
new file mode 100644
index 0000000000..38ce45212f
--- /dev/null
+++ b/testsuite/tests/rebindable/T4851.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE Arrows, RebindableSyntax #-}
+module T4851 where
+
+import Prelude hiding ( id, (.) )
+
+import Control.Category ( Category(..) )
+import Control.Arrow
+
+garbage x =
+ proc b ->
+ do rec (c, d) <- undefined -< (b, d)
+ returnA -< c