[project @ 1998-11-10 08:51:22 by sof]
authorsof <unknown>
Tue, 10 Nov 1998 08:51:22 +0000 (08:51 +0000)
committersof <unknown>
Tue, 10 Nov 1998 08:51:22 +0000 (08:51 +0000)
do&where interaction tests

ghc/tests/reader/should_compile/read011.hs [new file with mode: 0644]

diff --git a/ghc/tests/reader/should_compile/read011.hs b/ghc/tests/reader/should_compile/read011.hs
new file mode 100644 (file)
index 0000000..5b1d7d5
--- /dev/null
@@ -0,0 +1,24 @@
+--!!! do & where interaction
+module ShouldSucceed where
+
+f1 :: IO a -> IO [a]
+f1 x = do
+  v <- x
+  return [v]
+ where
+  g x = [x,x]
+
+f2 :: IO a -> IO [a]
+f2 x = do
+  v <- x
+  return (g v)
+   where
+    g x = [x,x]
+
+f3 :: IO a -> IO [a]
+f3 x = do
+  v <- x
+  return (g v)
+  where
+   g x = [x,x]
+