Stephen Morgan
4cb631c0f2
fix: web: Handle non-regular postings in the add transaction form. ( #1058 )
2021-09-08 13:21:50 -10:00
Stephen Morgan
04c35e1519
fix: bin: Allow hledger-check-fancyassertions to parse predicates ( #1464 ).
2021-09-08 13:19:31 -10:00
Stephen Morgan
8fcdc22a45
fix: bin: Get scripts compiling with current hledger-lib.
2021-09-08 13:19:31 -10:00
Simon Michael
db45b13249
test: more detailed commodity directive tests
2021-09-07 10:19:01 -10:00
Simon Michael
cea8bc0558
test: split/rename directive tests
2021-09-07 09:51:49 -10:00
Simon Michael
344c421a3b
test: update shelltest format
2021-09-07 09:47:31 -10:00
Dmitry Astapov
555a68faa5
fix: roi: rare bug with PnL applied on the first day of investment
2021-09-03 11:02:43 -10:00
Simon Michael
25755c1ddd
;doc: journal: clarify account type auto detection, again
2021-09-02 09:04:55 -10:00
Simon Michael
32bf6284be
;doc: journal: clarify account type auto detection
2021-09-02 07:26:53 -10:00
Simon Michael
703980524b
;doc: csv: clarifiy csv-only interpolation earlier
2021-09-01 07:14:05 -10:00
Simon Michael
5485990cac
fix: csv: report correct CSV line number in errors
...
Some errors in CSV conversion, such as a failing balance assertion,
were always being reported as line 2.
Reported by Lawrence Wu.
2021-09-01 06:58:15 -10:00
Stephen Morgan
8274da81fc
cln: tests: Remove test and tests, which are just aliases for testCase
...
and testGroup.
Replacing these removes a layer of indirection, and reduces the need to
depend on Hledger.Utils.Test.
2021-08-30 16:32:19 -10:00
Stephen Morgan
83aa7324eb
dev: cli: Move Template Haskell to get git hash from Hledger.Cli.Version
...
to Hledger.Cli.
Since the git hash changes whenever any file in the repository changes,
this means Hledger.Cli.Version needs to be recompiled all the time.
Since it is at the bottom of the module hierarchy, this means that the
whole hledger package needs to be recompiled. We instead move the
TemplateHaskell splice to one of the top modules, so much less needs to
be recompiled.
Note: Ghc seems to be able to get out of most of the recompiling a lot
of the time (due to caching?), but this makes things more reliable.
2021-08-30 15:57:33 -10:00
Stephen Morgan
1c402edb06
pkg!: Remove Hledger.Data.Commodity module.
...
There are no modules which depend on Hledger.Data.Commodity which don't
also depend on Hledger.Data.Amount. Though Hledger.Data.Amount is a very
large module and might be broken up, Hledger.Data.Commodity only defines
three very small functions which are used, and so can be combined with
little cost.
2021-08-30 15:57:33 -10:00
Stephen Morgan
a0f9d7560f
pkg!: Remove Hledger.Utils.Color module.
...
This module was only used in one place in Hledger.Data.Amount. The code
has been moved directly into Hledger.Utils.
2021-08-30 15:57:33 -10:00
Stephen Morgan
f1994d5aa8
pkg!: Remove Hledger.Utils.Tree module.
...
This very small module was only used in Hledger.Data.Account, so the
code was moved into that module instead.
2021-08-30 15:57:33 -10:00
Stephen Morgan
1ed06f3bc8
pkg!: Remove Hledger.Utils.UTF8IOCompat module.
...
This module does nothing beyond define error' and usageError, which have
been moved to Hledger.Utils.
2021-08-30 15:57:33 -10:00
Simon Michael
dade3e3421
credits: notes for all multi-committers
2021-08-29 09:11:04 -10:00
Simon Michael
6f96d21a3e
ci: fix windows, make bash requirement explicit
2021-08-29 08:10:09 -10:00
Simon Michael
07faf2ad2f
;credits: notes
2021-08-29 08:07:50 -10:00
Stephen Morgan
bd113b223f
dev: lens: Introduce lenses for CliOpts.
2021-08-28 19:12:04 -10:00
Stephen Morgan
f3eacebc1d
dev: lens: Use TemplateHaskell for ReportOpts and ReportSpec.
...
Also rename overWithReport/setWithReport to overEither/setEither.
2021-08-28 19:12:04 -10:00
Stephen Morgan
435ec992f9
dev: lens: Introduce lenses for InputOpts and BalancingOpts.
2021-08-28 19:12:04 -10:00
Stephen Morgan
c784da3d0c
dev: lens: Create a Template Haskell helper for generating classy lenses
...
for hledger options.
This works for BalancingOpts, InputOpts, ReportOpts, ReportSpec, and CliOpts.
2021-08-28 19:12:04 -10:00
Stephen Morgan
13206d0b18
cln: Rename balancingOpts to defbalancingopts, to be consistent with definputopts, defreportopts, etc.
2021-08-28 19:12:04 -10:00
Simon Michael
e310ba574c
;credits: update
2021-08-28 17:19:35 -10:00
Stephen Morgan
35be02a4f3
cln: hlint: Clean up some examples of using sortOn.
2021-08-27 06:13:56 -10:00
Stephen Morgan
b7bf780c52
dev: hlint: Avoid use of reverse.
...
Note that this is semantically different, and will produce different
results. In particular, the sort is now stable, i.e. account names with
the same balance will not have their order reversed relative to each
other. In this context there doesn't seem to be a reason to prefer one
order to the other, so I'm making this change.
2021-08-27 06:13:56 -10:00
Stephen Morgan
d248aec313
cln: hlint: Remove eta reduce warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
32dad455fd
cln: hlint: Clean up section related warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
1a534e485c
cln: hlint: Use fewer imports.
2021-08-27 06:13:56 -10:00
Stephen Morgan
761e00caa4
cln: hlint: Clean up lambda related warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
8bf7c95697
cln: hlint: Clean up Functor related hlint warnings, and NOINLINE warning.
2021-08-27 06:13:56 -10:00
Stephen Morgan
21e62ffcbd
cln: hlint: Remove unless and $> warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
beecb3c9ac
cln: hlint: Clean up list related hlint warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
22db5c4a3f
cln: hlint: Remove warnings to use library list functions.
2021-08-27 06:13:56 -10:00
Stephen Morgan
330c21659f
cln: hlint: Clean up Maybe related hlint warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
e13239386f
cln: hlint: Clean up == and elem related hlint warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
82872d261a
cln: hlint: Remove miscellaneous hlint warnings which are no longer tripped.
2021-08-26 21:00:35 -10:00
Stephen Morgan
3431b1b0d9
cln: hlint: Clean up map-fusion related hlint warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
eb6047e81b
cln: hlint: Remove redundant where and lambda warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
71032c637e
cln: hlint: Remove cons warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
435fbf001e
cln: hlint: Remove <|> and bimap warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
46b0745412
cln: hlint: Remove Either and Bifunctor related warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
69502c44fe
cln: hlint: Fix record patterns warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
1c211f8ab8
cln: hlint: Fix redundant return warning.
2021-08-26 21:00:35 -10:00
Simon Michael
8bf7cd30ae
;doc: update changelogs
2021-08-26 20:59:45 -10:00
Simon Michael
405fdf7afe
;doc: forecasting: tweak, report-intervals
2021-08-26 20:41:30 -10:00
Simon Michael
05603ee28f
;doc: forecasting: tweak, mdbook/commonmark eats the required double space
2021-08-26 20:39:14 -10:00
Simon Michael
5a6098b7cd
;doc: rewrite forecasting doc, sync with #1667
2021-08-26 20:33:08 -10:00