hledger/hledger
g. nicholas d'andrea e678e09704 feat: accounts: add Gain (G) account type as subtype of Revenue [#2522]
Add a new account type Gain with single-letter code G as a subtype of
Revenue, similar to how Cash is a subtype of Asset and Conversion is a
subtype of Equity. This enables tracking capital gains/losses separately
while still including them in income statements and close --retain.

Usage: account revenues:capital  ; type: G

- type:G matches only Gain accounts
- type:R matches both Revenue and Gain (subtype matching)
- Auto-detection from account names matching:
  ^(income|revenue)s?:(capital[- ]?)?(gains?|loss(es)?)(:|$)
  e.g. income:gains, revenue:capital-gains, income:losses
2026-01-08 19:18:13 -10:00
..
app dev: switch all qualifed imports to ImportQualifiedPost style 2025-09-29 19:28:59 -10:00
bench ;dev: fix hledger/bench/bench.hs 2025-02-27 07:32:44 -10:00
embeddedfiles dev: remove the dead link: hledger/embeddedfiles/hledger-journal.md 2024-10-05 15:08:02 -10:00
Hledger ;add: allow older haskeline again, it's needed for stackage (reopens [#2410]) 2026-01-08 18:15:35 -10:00
shell-completion imp:accounts: rename --positions to --locations for consistency 2025-10-13 10:11:18 -10:00
test feat: accounts: add Gain (G) account type as subtype of Revenue [#2522] 2026-01-08 19:18:13 -10:00
.date.m4 ;doc: update embedded manuals 2025-12-04 17:15:51 -10:00
.ghci
.version ;pkg: set version to 1.51.99 2025-12-05 01:10:16 -10:00
.version.m4 ;pkg: set version to 1.51.99 2025-12-05 01:10:16 -10:00
CHANGES.md ;doc:changelogs: 1.51.2 2026-01-08 02:10:53 -10:00
dir-entry.texi ;fix: doc: info: avoid directory paths in directory metadata (#1594) 2021-07-14 09:07:56 -10:00
hledger.1 ;doc: update embedded manuals 2025-12-05 01:12:50 -10:00
hledger.cabal ;add: allow older haskeline again, it's needed for stackage (reopens [#2410]) 2026-01-08 18:15:35 -10:00
hledger.info ;doc: update embedded manuals 2025-12-05 01:12:50 -10:00
hledger.m4.md feat: accounts: add Gain (G) account type as subtype of Revenue [#2522] 2026-01-08 19:18:13 -10:00
hledger.txt ;doc: update embedded manuals 2025-12-05 01:12:50 -10:00
LICENSE ;pkg: simplify LICENSE (try to fix github license detection) 2025-03-31 19:12:38 -10:00
package.yaml ;add: allow older haskeline again, it's needed for stackage (reopens [#2410]) 2026-01-08 18:15:35 -10:00
README.md ;doc: more tweaks to package readmes, hackage descriptions 2020-03-22 10:49:02 -07:00
Setup.hs

hledger

The command-line interface for the hledger accounting system. Its basic function is to read a plain text file describing financial transactions and produce useful reports.

See also: the project README and home page.