> main = do dc <- getDirectoryContents "./foo/" > mapM_ putStrLn dc > > Translating out the do notation > (http://www.haskell.org/haskellwiki/Keywords#do): > > main = getDirectoryContents >>= \dc -> > mapM_ putStrLn dc
Woops, I lost "./foo/" here, but it should be fairly easy to insert through the remaining translations. Thanks Neil ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ============================================================================== _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
