hledger/hledger-lib/Hledger
Stephen Morgan 4a80551406 fix: price: Make sure inferred market prices have the correct sign with
total prices. (#1813)

Also reduce duplication for inferring market prices (previously it was
done separately in both Hledger.Data.Journal and
Hledger.Cli.Commands.Prices), and remove *TotalPriceToUnitPrice
functions, since unit prices cannot represent all total prices.

Add a helper function numDigitsInt to get the number of digits in an
integer, which has a surprising number of ways to get it wrong.
2022-03-10 17:34:49 -10:00
..
Data fix: price: Make sure inferred market prices have the correct sign with 2022-03-10 17:34:49 -10:00
Read fix: alias: Allow escaped characters in regular expression aliases. (#982) 2022-03-10 17:00:03 -10:00
Reports dev: reg: areg: Strip prices early on in PostingsReport and AccountTransactionsReport, when possible. 2022-03-10 17:21:40 -10:00
Utils cln!: sourcepos: Use megaparsec-supplied sourcePosPretty. 2022-03-10 16:56:28 -10:00
Data.hs pkg!: Break functions related to balancing out into a separate module, 2021-09-19 17:10:38 -10:00
Query.hs fix: types: Make sure type: query will correctly match subtypes, so 2022-02-03 15:32:00 -10:00
Read.hs dev: Move journal and text parsing utilities into more appropriate places, to reduce reliance on Hledger.Read.Common. 2021-09-19 17:10:38 -10:00
Reports.hs cln: tests: Remove test and tests, which are just aliases for testCase 2021-08-30 16:32:19 -10:00
Utils.hs fix: price: Make sure inferred market prices have the correct sign with 2022-03-10 17:34:49 -10:00