Commit Graph

7994 Commits

Author SHA1 Message Date
Simon Michael
4026e08797 ;tests: fix some func tests broken by c6da152e 2019-12-28 21:08:27 -08:00
Simon Michael
0b734be445 ; silence safe 0.3.18's deprecation warnings for now
(max|min)imum(By)?Def are being replaced by (max|min)imumBound(By)?
but the old functions have the semantics I want and
I don't understand the new ones yet.
This can hide other deprecation warnings in this file,
and presumably the old functions will be removed later,
so this is temporary.
Cf https://github.com/ndmitchell/safe/issues/26
2019-12-28 15:52:32 -08:00
Simon Michael
64470ba392 ;make *buildtest*: skip tests/benchmarks, save a little time & noise
[ci skip]
2019-12-28 13:32:54 -08:00
Simon Michael
aa47d8ddc9 web: fix add form completions (fixes #1156)
It seems like show (toJSON "a") used to give "\"a\"" instead of
"String \"a\"". I haven't found the root cause, it's possible
that this fix won't work if built with older libs.
2019-12-27 17:21:50 -08:00
Simon Michael
c5537cedb5 ;lib: drop more unnecessary toJSON calls 2019-12-27 15:49:42 -08:00
Simon Michael
7e49d8cce9 ;stack: build with ghc 8.8, latest nightly by default
Shake.hs's deps (regex) might or might not build with ghc 8.8 yet.
2019-12-24 17:19:11 -08:00
Simon Michael
39d9e417c3 ;stack: rename the ghc 8.6 stack.yaml 2019-12-24 17:17:51 -08:00
Stephen Morgan
b9b16da8ed Correct finding latest date in queryEndDate Or queries and simplify date
comparison code.
2019-12-24 05:04:51 -08:00
Simon Michael
ace729d5ab stack: ghc8.10: update extra-deps 2019-12-22 08:13:00 -08:00
Brian Wignall
2852f9dbee Fix typos 2019-12-21 12:09:05 -08:00
Simon Michael
4266db5633 ;csv: doc: document balance-type
[ci skip]
2019-12-20 10:41:24 -08:00
Simon Michael
9e5be796d8 ;doc: roadmap updates
[ci skip]
2019-12-20 10:40:59 -08:00
Simon Michael
5b066eba8e
Merge pull request #1151 from ghallak/master
Change the '<' command to go back one step during addition
2019-12-18 12:48:17 -08:00
Gaith Hallak
9b6652b93f Update the instructions for the add command 2019-12-18 23:24:10 +03:00
Gaith Hallak
e1bbefbd1b Remember the previously entered values when stepping forward 2019-12-18 23:14:43 +03:00
Simon Michael
b8ecf9363a ;doc: update roadmap
[ci skip]
2019-12-18 10:51:41 -08:00
Simon Michael
4150a3621a ;doc: update roadmap
[ci skip]
2019-12-18 10:43:48 -08:00
Simon Michael
696cdaeb2f ;doc: update roadmap
[ci skip]
2019-12-18 10:38:32 -08:00
Gaith Hallak
ee18227a12 Show the previous input in the input area after the back command 2019-12-18 19:53:45 +03:00
Gaith Hallak
6f26eef832 Change the '<' command to go back one step during addition 2019-12-18 00:38:29 +03:00
Simon Michael
7fa7ccc033 ToJSON instances for all (?) remaining data types, up to Ledger 2019-12-16 17:17:00 -08:00
Simon Michael
46d516e7a3 move JSON instances from hledger-web to hledger-lib 2019-12-16 17:17:00 -08:00
Simon Michael
5a19d604b6 ; sort commands list 2019-12-16 16:32:26 -08:00
Simon Michael
43159f4fea ;ui: E key: comment
[ci skip]
2019-12-15 11:07:26 -08:00
Simon Michael
44da1e1cb7 ;ui: E key: simplify; drop buggy emacs end-of-file positioning 2019-12-15 11:03:05 -08:00
Simon Michael
67635106d2 fix help 2019-12-14 18:06:24 -08:00
Simon Michael
4cd2c35ad4 ;ui: E key: support positioning with nano editor 2019-12-14 17:57:24 -08:00
Simon Michael
1bf271a8c4 ;ui: clarify editorOpenPositionCommand 2019-12-14 17:54:29 -08:00
Simon Michael
a09513c3fb ;ui: refactor: consolidate EditorType definition and related code 2019-12-14 17:43:52 -08:00
Simon Michael
47567cd770 ;fix some warnings with GHC 8.10 alpha
hledger is GHC 8.10 ready!
2019-12-14 17:30:19 -08:00
Simon Michael
9612c1f917 ;stack: add a config for ghc 8.10 alpha
[ci skip]
2019-12-14 17:30:19 -08:00
Simon Michael
b6c0668695 ;stack: ghc 8.8 cleanups
[ci skip]
2019-12-14 14:11:36 -08:00
Simon Michael
2a2f08bb58 ;doc: csv: mention that fields rule's separator != csv separator
[ci skip]
2019-12-14 14:00:59 -08:00
Simon Michael
2825a06e8e ;doc: csv: expand help on other separator characters
[ci skip]
2019-12-14 13:57:48 -08:00
Simon Michael
f099fb558e ;doc: csv: mention entr for rapid feedback
[ci skip]
2019-12-09 14:46:02 -08:00
Simon Michael
4d20ce2ee0 ;doc: cli: update addons list, drop builtin ones 2019-12-09 13:55:16 -08:00
Simon Michael
8b3e7ea72b ;Shake: consistency tweak in the webmanuals help 2019-12-09 06:36:45 -08:00
Simon Michael
ccc42d4c2b ;Shake: add "webmanuals" to the default help 2019-12-09 06:35:04 -08:00
Simon Michael
eb1bb0702d ;Shake webmanuals: add a "generated by" comment (hledger_site/#10)
[ci skip]
2019-12-09 06:33:08 -08:00
Simon Michael
3aaea1ef4e ;doc: note that doc dev docs need update 2019-12-09 06:22:49 -08:00
Simon Michael
95aa2e16cc ;doc: fix some old wiki and Cookbook references (hledger_site/#10) 2019-12-09 06:08:03 -08:00
Simon Michael
c759c9b3de ;lib: fix some more warnings in Transaction 2019-12-09 06:08:03 -08:00
Simon Michael
13e6c7dfdf lib: drop "assertion" alias for nullassertion
Perhaps we'll stick with the null* convention. Fixes a warning in Transaction.hs.
2019-12-09 06:08:03 -08:00
Simon Michael
63aec5ef56
Merge pull request #1140 from jacg/amt-redirect-issue-457
fix parsing of < and > in add-on commands (#457)
2019-12-08 10:18:00 -08:00
Jacek Generowicz
24fbe313dd ;Fix rewrite tests after #457 fix
As a consequence of fixing #457, two rewrite tests fail, because extra
quotes appear in the output of the commands being tested.

These quotes appear in comments which reflect the command which was
run in order to produce the output. Instead of

   ; generated-posting: = assets:bank and amt:<0

we now get

   ; generated-posting: = assets:bank and "amt:<0"

Given that the quotes around `amt:<0` are necessary for the command to
work properly, these quotes should really be there in the expected
output.

Hence this commit modifies the expected output of the tests, by adding
in the quotes. This makes the tests pass once more.
2019-12-08 18:33:43 +01:00
Jacek Generowicz
c6da152e9a ;convert extant addon tests to shellrunner format 3 2019-12-08 18:33:43 +01:00
Jacek Generowicz
4593963fef ;Disable tests according to discussion in #457
https://github.com/simonmichael/hledger/pull/1140#issuecomment-562793255
2019-12-08 18:33:43 +01:00
Jacek Generowicz
29211868bb Fix issue 457
Issue #457 pointed out that commands such as

    hledger ui 'amt:>200'

failed. This was becasue the process of dispatching from `hledger ui`
to `hledger-ui` (note addition of `-`) lost the quotes around
`amt:>20` and the `>` character was interpreted as a shell redirection
operator, rather than as part of the argument.

The machinery for quoting or escaping arguements which cointain
characters which require quoting or escaping (thus far whitespace and
quotes) already existed. This solution simply adds shell stdio
redirection characters to this set.

Fixes #457
2019-12-08 18:33:43 +01:00
Jacek Generowicz
7394441728 ;Add shelltests demonstrating bug reported in issue 457 2019-12-08 18:33:43 +01:00
Simon Michael
9d6db33278 close: doc: mention --close-to/--open-from in the manual
[ci skip]
2019-12-06 12:27:07 -08:00