hledger/hledger-lib
Stephen Morgan 80cf1d1995 !dev: lib: Allow Account to store date-indexed balances.
This upgrades Account to enable it to store a multiperiod balance, with
a separate balance for each date period. This enables it do the hard
work in MultiBalanceReport.

Some new types are created to enable convenient operation of accounts.
- `BalanceData` is a type which stores an exclusive balance, inclusive
  balance, and number of postings. This was previously directly stored
  in Account, but is now factored into a separate data type.
- `PeriodData` is a container which stores date-indexed data, as well as
  pre-period data. In post cases, this represents the report spans,
  along with the historical data.
- Account becomes polymorphic, allowing customisation of the type of
  data it stores. This will usually be `BalanceData`, but in
  `BudgetReport` it can use `These BalanceData BalanceData` to store
  both actuals and budgets in the same structure. The data structure
  changes to contain a `PeriodData`, allowing multiperiod accounts.

Some minor changes are made to behaviour for consistency:
- --declared treats parent accounts consistently.
- --flat --empty ensures that implied accounts with no postings are not displayed, but
  accounts with zero balance and actual postings are.
2025-06-04 23:10:00 -10:00
..
Hledger !dev: lib: Allow Account to store date-indexed balances. 2025-06-04 23:10:00 -10:00
test ;cln: unittest.hs: remove bothersome PackageImports (#2337) 2025-02-26 11:54:59 -10:00
Text lib: Tabular.AsciiWide.renderRs: simplify using flattenHeader 2024-09-24 20:50:54 -10:00
.date.m4 ;doc: update embedded manuals 2025-06-04 07:31:18 -10:00
.ghci tools: .ghci for each package, sets shorter prompt 2016-04-15 16:06:45 -07:00
.version ;pkg: set version to 1.43.99 2025-06-04 07:31:12 -10:00
.version.m4 ;pkg: set version to 1.43.99 2025-06-04 07:31:12 -10:00
CHANGES.md ;doc: finalise changelogs for 1.43.1 on 2025-06-03 2025-06-03 18:44:40 -10:00
hledger-lib.cabal !dev: lib: Allow Account to store date-indexed balances. 2025-06-04 23:10:00 -10:00
Hledger.hs ;pkg: tweak LICENSE files, try to get github to recognise 2025-03-31 18:18:10 -10:00
LICENSE ;pkg: simplify LICENSE (try to fix github license detection) 2025-03-31 19:12:38 -10:00
package.yaml !dev: lib: Allow Account to store date-indexed balances. 2025-06-04 23:10:00 -10:00
README.md ;doc: more tweaks to package readmes, hackage descriptions 2020-03-22 10:49:02 -07:00
Setup.hs Revert "remove Setup.hs files again, fixing a yesod devel warning" 2014-05-24 13:39:09 -07:00

hledger-lib

A reusable library containing hledgers core functionality. This is used by most hledger* packages so that they support the same common file formats, command line options, reports etc.

See also: the project README and home page.