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