mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-24 02:44:25 +03:00
Better types
This commit is contained in:
parent
edd130781c
commit
f922df71d2
@ -187,7 +187,7 @@ parseCsv2 = undefined
|
||||
parseCassava :: FilePath -> String -> Either String [Record]
|
||||
parseCassava path content = fmap fromCassavaToCSV $ DCSV.decode DCSV.NoHeader (C.pack content)
|
||||
|
||||
fromCassavaToCSV :: (V.Vector (V.Vector C.ByteString)) -> [Record]
|
||||
fromCassavaToCSV :: (V.Vector (V.Vector C.ByteString)) -> CSV
|
||||
fromCassavaToCSV records = V.toList (V.map toCSVRecord records)
|
||||
where toCSVRecord fields = V.toList (V.map (C.unpack) fields)
|
||||
>>>>>>> Conversion to Text CSV type
|
||||
|
Loading…
Reference in New Issue
Block a user