Safe Haskell | Safe-Infered |
---|
A reader for the CSV data format. Uses an extra rules file (http://hledger.org/MANUAL.html#rules-file-directives) to help interpret the data. Example:
"2012/3/22","something","10.00" "2012/3/23","another","5.50"
and rules file:
date-field 0 description-field 1 amount-field 2 base-account assets:bank:checking SAVINGS assets:bank:savings
- reader :: Reader
- type CsvRecord = [String]
- nullrules :: CsvRules
- rulesFileFor :: FilePath -> FilePath
- parseCsvRulesFile :: FilePath -> IO (Either ParseError CsvRules)
- transactionFromCsvRecord :: CsvRules -> CsvRecord -> Transaction
- tests_Hledger_Read_CsvReader :: Test