58f989715a
This PR #1330, addressing #1312 (parseQuery is partial) and #1245 (internal server error). User-visible changes: - hledger-web now handles malformed regular expressions (eg, a query consisting of the single character `?`) gracefully, showing a tidy error message instead "internal server error". API/internal changes: - The Regex type alias has been replaced by the Regexp ADT, which contains both the compiled regular expression (so is guaranteed to be usable at runtime) and the original string (so can be serialised, printed, compared, etc.) A Regexp also knows whether is it case sensitive or case insensitive. The Hledger.Utils.Regex api has changed. - Typeable and Data instances are no longer derived for hledger's data types; they were redundant/no longer needed - NFData instances are no longer derived for hledger's data types. This speeds up a full build by roughly 7%. But it means we can't deep-evaluate hledger values, or time hledger code with Criterion. https://github.com/simonmichael/hledger/pull/1330#issuecomment-684075129 has some ideas on this. - Query no longer has a custom Show instance - Some internal use of regexps was replaced by text replacement or parsers. - Hledger.Utils.String: quoteIfNeeded now actually escapes quotes in strings; dropped escapeQuotes - Hledger.Utils.Tree: dropped some old utilities - dropped some obsolete code for the old --display option Merge branch 'regexp' into master |
||
---|---|---|
.github | ||
.sandstorm | ||
bin | ||
checks | ||
doc | ||
docker | ||
examples | ||
hledger | ||
hledger-install | ||
hledger-lib | ||
hledger-ui | ||
hledger-web | ||
shell-completion | ||
tests | ||
tools | ||
.appveyor.yml | ||
.ci | ||
.ctags | ||
.dockerignore | ||
.editorconfig | ||
.ghci | ||
.gitignore | ||
.hlint.yaml | ||
.mailmap | ||
.travis.yml | ||
.version | ||
azure-pipelines.yml | ||
bench.sh | ||
cabal.project | ||
CHANGES.md | ||
CONTRIBUTING.md | ||
CREDITS.md | ||
dev.hs | ||
Dockerfile | ||
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.10.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: