mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
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 |
||
---|---|---|
.. | ||
Hledger | ||
other/ledger-parse | ||
test | ||
Text | ||
.ghci | ||
.version | ||
CHANGES.md | ||
defs.m4 | ||
hledger_csv.5 | ||
hledger_csv.info | ||
hledger_csv.m4.md | ||
hledger_csv.txt | ||
hledger_journal.5 | ||
hledger_journal.info | ||
hledger_journal.m4.md | ||
hledger_journal.txt | ||
hledger_timeclock.5 | ||
hledger_timeclock.info | ||
hledger_timeclock.m4.md | ||
hledger_timeclock.txt | ||
hledger_timedot.5 | ||
hledger_timedot.info | ||
hledger_timedot.m4.md | ||
hledger_timedot.txt | ||
hledger-lib.cabal | ||
Hledger.hs | ||
LICENSE | ||
package.yaml | ||
README.md | ||
Setup.hs |
hledger-lib
A reusable library containing hledger's core functionality. This is used by most hledger* packages so that they support the same common file formats, command line options, reports etc.
See also: the project README and home page.