Navigation Menu

Skip to content

Commit

Permalink
replaced sequence . map with the more concise mapM
Browse files Browse the repository at this point in the history
Ignore-this: 8536085023e5e0e379497ccae19e5820

darcs-hash:20100425035755-b3b23-18f4157f9e6abdca1c3d19deaddda339025c79a3.gz
  • Loading branch information
keithshep committed Apr 25, 2010
1 parent ff742be commit fcaf436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csvzip.hs
Expand Up @@ -29,7 +29,7 @@ main = do
case fileNames of case fileNames of
-- parse all CSV files giving us a list of tables, then zip and print them -- parse all CSV files giving us a list of tables, then zip and print them
(_ : _ : _) -> do (_ : _ : _) -> do
tables <- sequence $ map getAndParseTable fileNames tables <- mapM getAndParseTable fileNames
putStr $ formatTable csvFormat (zipAllColumns tables) putStr $ formatTable csvFormat (zipAllColumns tables)


_ -> printUsage _ -> printUsage
Expand Down

0 comments on commit fcaf436

Please sign in to comment.