summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOzgunAtaman <>2011-11-15 18:09:57 (GMT)
committerhdiff <hdiff@luite.com>2011-11-15 18:09:57 (GMT)
commit50f5e0373ae8785f06c68108b7803997c648b05c (patch)
treeaac49a1462e9aac0dc136c4392ae03fc1519c98b
parentdfcf10a17adb2d179e113286656c0df1eb974f21 (diff)
version 0.9.50.9.5
-rw-r--r--csv-enumerator.cabal2
-rw-r--r--src/Data/CSV/Enumerator.hs6
2 files changed, 6 insertions, 2 deletions
diff --git a/csv-enumerator.cabal b/csv-enumerator.cabal
index cac6db1..6af3b0f 100644
--- a/csv-enumerator.cabal
+++ b/csv-enumerator.cabal
@@ -1,5 +1,5 @@
Name: csv-enumerator
-Version: 0.9.3
+Version: 0.9.5
Synopsis: A flexible, fast, enumerator-based CSV parser library for Haskell.
Homepage: http://github.com/ozataman/csv-enumerator
License: BSD3
diff --git a/src/Data/CSV/Enumerator.hs b/src/Data/CSV/Enumerator.hs
index 65c3b9d..279a858 100644
--- a/src/Data/CSV/Enumerator.hs
+++ b/src/Data/CSV/Enumerator.hs
@@ -22,6 +22,10 @@ module Data.CSV.Enumerator
, writeCSVFile
, appendCSVFile
+ -- * Very Basic CSV Operations (for Debugging or Quick&Dirty Needs)
+ , parseCSV
+ , parseRow
+
-- * Generic Folds Over CSV Files
-- | These operations enable you to do whatever you want with CSV files;
-- including interleaved IO, etc.
@@ -267,7 +271,7 @@ instance CSVeable MapRow where
return oh'
iter fi (Just oh, i) (ParsedRow (Just r))
iter fi (Just oh, !i) (ParsedRow (Just r)) =
- let rows = f . addFileSource fi $ r
+ let rows = map (addFileSource fi) $ f r
in do
outputRowsIter s oh rows
return (Just oh, i+1)