[Haskell-cafe] [Beginner's Question] How to read filenames from a DirStream

David House dmhouse at gmail.com
Mon Apr 9 07:02:43 EDT 2007

On 09/04/07, Albert Lee <hanzhupeng at gmail.com> wrote:
>  mapM putStrLn files

Seeing as you're not doing anything with the results of this map, you
probably want to use mapM_ instead. Then the result type of ls_dir1
can be IO (), which is neater.

-David House, dmhouse at gmail.com

More information about the Haskell-Cafe mailing list