hledger-lib-1.28: A reusable library providing the core functionality of hledger
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hledger.Read.CsvReader

Description

A reader for CSV data, using an extra rules file to help interpret the data.

Synopsis

Reader

Misc.

csvFileFor :: FilePath -> FilePath Source #

Given a CSV rules file path, what would normally be the corresponding CSV file ?

rulesFileFor :: FilePath -> FilePath Source #

Given a CSV file path, what would normally be the corresponding rules file ?

parseRulesFile :: FilePath -> ExceptT String IO CsvRules Source #

An pure-exception-throwing IO action that parses this file's content as CSV conversion rules, interpolating any included files first, and runs some extra validation checks.

Tests

Orphan instances