summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read059.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read059.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read059.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read059.hs b/testsuite/tests/parser/should_compile/read059.hs
new file mode 100644
index 0000000000..79989afd3f
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read059.hs
@@ -0,0 +1,11 @@
+
+{-# LANGUAGE RecursiveDo #-}
+
+module Foo where
+
+import Control.Monad.Fix
+
+z :: Maybe [Int]
+z = mdo x <- return (1:x)
+ return (take 4 x)
+