hledger/hledger-lib/Hledger/Data
Simon Michael 45127dc5f5 feat: new type: query for easy matching by account type
type:TYPES, where TYPES is any of the (case insensitive) letters
ALERXCV, matches accounts by their declared or inferred type.
(See https://hledger.org/hledger.html#account-types.)
This should work with most commands, eg:

    hledger bal type:al
    hledger reg type:x

API changes:

Journal has a new jaccounttypes map.
The journalAccountType lookup function makes it easy to check an account's type.
The journalTags and journalInheritedTags functions look up an account's tags.
Functions like journalFilterPostings and journalFilterTransactions,
and new matching functions matchesAccountExtra, matchesPostingExtra
and matchesTransactionExtra, use these to allow more powerful matching
that is aware of account types and tags.
2022-01-31 16:44:13 -10:00
..
Account.hs cln: Add explicit export list for Hledger.Data.Account. 2021-09-18 11:41:53 -10:00
AccountName.hs feat: new type: query for easy matching by account type 2022-01-31 16:44:13 -10:00
Amount.hs imp: cost: Generate totally balanced conversion postings for amounts with costs. 2021-12-21 10:50:13 -10:00
Balancing.hs imp: nicer invalid balance assignment errors (tweak) 2022-01-26 08:59:19 -10:00
Dates.hs fix: warning (#1799) 2022-01-26 09:00:40 -10:00
Journal.hs feat: new type: query for easy matching by account type 2022-01-31 16:44:13 -10:00
Json.hs lib!: Remove GenericSourcePos, and replace it with either SourcePos or 2021-09-20 08:38:33 -10:00
Ledger.hs cln: tests: Remove test and tests, which are just aliases for testCase 2021-08-30 16:32:19 -10:00
Period.hs fix!: register: Tighten up spacing around the date in register reports. (#1655) 2021-08-22 08:15:22 -10:00
PeriodicTransaction.hs imp: smartdates: Simplify and generalise the SmartDate constructor and 2022-01-11 13:31:29 -10:00
Posting.hs feat: queries can now match account tags (#1817) 2022-01-30 09:47:52 -10:00
RawOptions.hs cln: hlint: Clean up list related hlint warnings. 2021-08-27 06:13:56 -10:00
StringFormat.hs pkg: Drop base-compat-batteries dependency. 2021-10-31 07:56:07 -10:00
Timeclock.hs lib!: Remove GenericSourcePos, and replace it with either SourcePos or 2021-09-20 08:38:33 -10:00
Transaction.hs fix: cost: Add inferred equity postings during journal finalisation, so 2022-01-16 18:37:18 -10:00
TransactionModifier.hs pkg: progress towards supporting GHC 9.2 and newer libs (#1774) 2021-12-06 12:32:50 -10:00
Types.hs feat: new type: query for easy matching by account type 2022-01-31 16:44:13 -10:00
Valuation.hs ;doc: add interim note re ConversionOp (#1808) 2022-01-16 18:43:40 -10:00