huangzworks / real-world-haskell-cn

《Real World Haskell》中文翻译项目
http://cnhaskell.com
1.56k stars 229 forks source link

fixed a bug in 9.rst #157

Open RedContritio opened 5 years ago

RedContritio commented 5 years ago

RecursiveContents.hs:10:5: error: The last statement in a 'do' block must be an expression paths <- forM properNames $ \ name -> do { let ...; isDirectory <- doesDirectoryExist path; .... }

previous code doesn't work, so must rebuild the lambda function.