Go to file
Stephen Morgan 2ada289e28 lib: 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 journal entries like the following impossible to balance:
2000-01-01
    a  0 @@ 10 A
    b  -10 A
2021-02-23 14:54:39 -08:00
.github ;stack: build with lts-17/ghc-8.10.3 by default 2021-01-29 15:13:06 -08:00
.sandstorm Add --capabilities-header to launcher.sh 2018-06-24 17:44:22 +02:00
bin bin: more robust --package syntax, comma form sometimes fails 2021-02-12 13:55:31 -08:00
checks update dev setup tests 2015-03-16 17:59:06 -07:00
doc cli: rename --infer-value to --infer-market-price 2021-02-05 15:16:39 -08:00
docker package: added helper scripts in docker/ 2019-01-31 12:44:12 -08:00
examples roi: roi-unrealised.example now works based on price directives 2021-02-23 14:11:29 -08:00
hledger roi: check valuation on dates we have price directives for 2021-02-23 14:11:29 -08:00
hledger-install install: 1.20.4 2021-01-29 14:38:40 -08:00
hledger-lib lib: Include sign in TotalPrice in Amount, rather than relying on the sign of 2021-02-23 14:54:39 -08:00
hledger-ui ;regenerate cabal files with the hpack version in current stack 2021-02-18 13:42:40 -08:00
hledger-web ;regenerate cabal files with the hpack version in current stack 2021-02-18 13:42:40 -08:00
shell-completion cli: rename --infer-value to --infer-market-price 2021-02-05 15:16:39 -08:00
tools ;doc: don't add page TOCs any more, sphinx has it covered 2019-08-26 09:37:03 -07:00
.ci ;api: another round of hledger-api purging; fix the build 2019-09-11 14:49:22 -07:00
.ctags cli, lib: move functional tests into hledger/test/ 2020-11-16 08:47:41 -08:00
.dockerignore package: added Dockerfile 2019-01-29 16:14:03 -08:00
.editorconfig fix datepicker not closing, linting 2017-12-30 13:44:40 -05:00
.ghci tools: use pretty-simple for ghci output 2020-11-03 08:19:01 -10:00
.gitignore web: --test [-- HSPECARGS] runs the test suite 2020-11-16 14:02:16 -08:00
.hlint.yaml refactor: lib: hlint cleanups 2019-02-14 05:15:49 -08:00
.mailmap doc: use consistent spelling of Mykola Orliuk 2017-03-27 05:47:15 -07:00
.version ;bump version to 1.20.99 2020-12-14 11:28:07 -08:00
azure-pipelines.yml ;api: another round of hledger-api purging; fix the build 2019-09-11 14:49:22 -07:00
bench.sh benchmarks: add some large (140, 1400 columns) tabular reports 2020-11-03 17:30:10 -10:00
cabal.project ;re-enable doctest suite, with a workaround for cabal 3 (#1139) 2020-03-06 18:30:32 -08:00
CHANGES.md ;doc: changelog updates 2020-12-29 10:21:27 -08:00
CONTRIBUTING.md ;doc: link updates 2020-12-26 17:27:27 -08:00
CREDITS.md ;doc: CREDITS cleanup 2020-03-21 18:37:49 -07:00
dev.hs collect some langage pragmas in dev.hs 2019-02-20 18:08:33 -08:00
Dockerfile ;api: another round of hledger-api purging; fix the build 2019-09-11 14:49:22 -07:00
hie.yaml ;tools: silence hls errors for Shake.hs 2020-12-07 12:27:03 -08:00
LICENSE add LICENSE 2008-10-01 07:52:07 +00:00
Makefile ;make functest: bump threads from 16 to 64 2021-01-29 12:09:02 -08:00
Makefile.helpsys make: rename sub-makefiles; start moving site script to make/shake 2019-03-05 18:43:04 -08:00
README.md ;doc: readme: drop badges header 2020-08-21 08:18:26 -07:00
ROADMAP.md ;roadmap: status 2020-08-29 14:45:50 -07:00
Shake.hs ;shake: use --markdown-headings to silence warning (& require pandoc-2.11.2+) 2021-02-17 12:11:15 -08:00
stack7.10.yaml.disabled ;simplify stack.yaml filenames 2020-03-30 15:35:53 -07:00
stack8.0.yaml add missing dep for other stack snapshots; also bump GHC 8.10 to .2 2020-11-11 12:52:44 -08:00
stack8.2.yaml add missing dep for other stack snapshots; also bump GHC 8.10 to .2 2020-11-11 12:52:44 -08:00
stack8.4.yaml add missing dep for other stack snapshots; also bump GHC 8.10 to .2 2020-11-11 12:52:44 -08:00
stack8.6.yaml add missing dep for other stack snapshots; also bump GHC 8.10 to .2 2020-11-11 12:52:44 -08:00
stack8.8.yaml ;stack: build with lts-17/ghc-8.10.3 by default 2021-01-29 15:13:06 -08:00
stack.yaml ;stack: build with lts-17/ghc-8.10.3 by default 2021-01-29 15:13:06 -08:00

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): github liberapay paypal

Sponsor the hledger project as an organisation: OpenCollective

Sponsor the hledger project as an individual: OpenCollective

Bounties for specific tasks: all bounties bountysource bounties




license hledger CI on hackage github issues