on master help sign in
remove redundant liftIO
commit54419aa5c31df4029a604fc8d0dd22b8bcb30491 authorHarendra Kumar <harendra.kumar@gmail.com> dateTue 29 May 2018, 12:51 (8 years ago) parentc77d3fb
1 file changed+2−2
examples/ListDir.hs+2−2
examples/ListDir.hs+2−2
@@ -7,12 +7,12 @@ import Streamly (runStream, aheadly)
77--
88-- This example demonstrates that there is little difference between regular
99-- IO code and concurrent streamly code. You can just remove
10−-- 'runStream . asyncly' and this becomes your regular IO code.
10+-- 'runStream . aheadly' and this becomes your regular IO code.
1111main :: IO ()
1212main = do
1313 hSetBuffering stdout LineBuffering
1414 runStream . aheadly $ getCurrentDir >>= readdir
1515 where readdir d = do
16− (ds, fs) <- liftIO $ listDir d
16+ (ds, fs) <- listDir d
1717 liftIO $ mapM_ putStrLn $ map show fs ++ map show ds
1818 foldMap readdir ds