fsh-csv 0.1.0.0 → 0.2.0.0
raw patch · 2 files changed
+8/−1 lines, 2 files
Files
- fsh-csv.cabal +1/−1
- src/FSH_CSV.hs +7/−0
fsh-csv.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: fsh-csv-version: 0.1.0.0+version: 0.2.0.0 synopsis: csv parser for fsh description: This is a csv parser for fsh. To use this parser, use the -p flag and pass 'csv' as argument license: MIT
src/FSH_CSV.hs view
@@ -62,6 +62,13 @@ parse :: [[Char]] -> [Char] parse = mapBraces.mapQuotes.mapLines +clean :: (String, [[String]]) -> [String]+clean (header,output) = + cleanedOutput+ where + outputMatrix = getWords header : output+ cleanedOutput = map (intercalate ",") outputMatrix + --- END TRANSFORMING --- EXECUTING