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