Data package:hledger-lib
The Hledger.Data library allows parsing and querying of C++
ledger-style journal files. It generally provides a compatible subset
of C++ ledger's functionality. This package re-exports all the
Hledger.Data.* modules (except UTF8, which requires an explicit
import.)
Given a rules file path, what would be the corresponding data file ?
(Remove a .rules extension.)
Data that's useful in "balance" reports: subaccount-exclusive and
-inclusive amounts, typically representing either a balance change or
an end balance; and a count of postings.
Data values for zero or more report periods, and for the pre-report
period. Report periods are assumed to be contiguous, and represented
only by start dates (as keys of an IntMap). XXX how does that work,
again ?
associated data per report period
Convert a list of
DateSpans to a 'PeriodData Day', or
Nothing if it is not well-formed. PARTIAL:
Add account balance information to the appropriate location in
PeriodData.
Get account balance information for the period containing a given
Day, along with the start of the period, or
Nothing if
this day lies in the historical period.
Get account balance information for the period containing a given
Day or the historical data if this day lies in the historical
period, along with the start of the period or
Nothing if it
lies in the historical period.
Merges two
PeriodData, using the given operations for balance
information only in the first, only in the second, or in both
PeriodData, respectively.
Merge two
BalanceData, using the given operation to combine
their amounts.
Merges two
PeriodData, using the given operation to combine
their balance information.
This will drop keys if they are not present in both
PeriodData.
Convert 'PeriodData Day' to a list of
DateSpans.
Apply a function to all
PeriodData within this and sub
accounts.
Custom error data for hledger parsers. Specialised for a
Text
parse stream. ReparseableTextParseErrorData ?