| - Consume list immediately in commodityStylesFromAmounts. This and/or the other strictness fixes below reduce memory and time usage, a lot, for journals with many @@ total prices. - Include sign in TotalPrice in Amount, rather than relying on the sign of aquantity. Journal entries still require a positive @@ price, but now the sign is set after parsing, rather than when converting in amountToCost. The reason for this change is that, if we're going to perform arithmetic on Amount with TotalCost, then the presence of aquantity=0 means that amountToCost would render the total cost as 0, because signum 0 == 0. This makes amount arithmetic more consistent, and allows negative prices to be represented. It also means that total prices override the primary amount: 0A @@ 1B is now 1B, not 0. - Make fields of Amount, AmountPrice, AmountStyle, and DigitGroupStyle strict. - Distinguish between an Amount having quantity (or rounded quantity 0), and having both quantity and totalprice 0 (or rounded to 0). - normaliseHelper now uses a strict Map for combining amounts internally, closing a big space leak. This also now combines Amounts with TotalPrices in the same commodity when normalising; amounts with TotalPrices were previously never combined. - (amount|mixedAmount)(Looks|Is)Zero functions now check whether both the quantity and the cost are zero. This is usually what you want, but if you do only want to check whether the quantity is zero, you can run mixedAmountStripPrices (or similar) before this. | ||
|---|---|---|
| .github | ||
| .sandstorm | ||
| bin | ||
| checks | ||
| doc | ||
| docker | ||
| examples | ||
| hledger | ||
| hledger-install | ||
| hledger-lib | ||
| hledger-ui | ||
| hledger-web | ||
| shell-completion | ||
| tools | ||
| .ci | ||
| .ctags | ||
| .dockerignore | ||
| .editorconfig | ||
| .ghci | ||
| .gitignore | ||
| .hlint.yaml | ||
| .mailmap | ||
| .version | ||
| azure-pipelines.yml | ||
| bench.sh | ||
| cabal.project | ||
| CHANGES.md | ||
| CONTRIBUTING.md | ||
| CREDITS.md | ||
| dev.hs | ||
| Dockerfile | ||
| hie.yaml | ||
| LICENSE | ||
| Makefile | ||
| Makefile.helpsys | ||
| README.md | ||
| ROADMAP.md | ||
| Shake.hs | ||
| stack7.10.yaml.disabled | ||
| stack8.0.yaml | ||
| stack8.2.yaml | ||
| stack8.4.yaml | ||
| stack8.6.yaml | ||
| stack8.8.yaml | ||
| stack.yaml | ||
hledger project README
lightweight, portable, dependable accounting tools
hledger is a computer program for easily tracking money, time, or other commodities, on unix, mac and windows (and web-capable mobile devices, to some extent).
It is first a command-line tool, but there are also terminal and web interfaces, and a Haskell library for building your own programs and scripts (hledger is written in Haskell). hledger was inspired by and is largely compatible with Ledger. hledger is free software available under the GNU General Public License v3+.
hledger aims to help both computer experts and regular folks to gain clarity and control in their finances and time management, but currently it is a bit more suited to techies. I use it every day to:
- track spending and income
- see time reports by day/week/month/project
- get accurate numbers for client billing and tax filing
- track invoices
Though limited in features, hledger is lightweight, usable and reliable. For some, it is a simpler, less distracting, more future-proof alternative to Quicken or GnuCash.
For more, see the home page: https://hledger.org
Sponsorship
Your support, large or small, helps keep this project strong!
See also https://hledger.org#sponsorship.
Sponsor Simon (project leader):  

Sponsor the hledger project as an organisation:  
 
 
 
 
 
 
 
 
 
Sponsor the hledger project as an individual: