Simon Michael
f7aec96db1
;doc:changelogs: cleanups
2025-03-07 21:22:19 -10:00
Simon Michael
b9cd9981f7
;doc: update embedded manuals
2025-03-07 18:49:13 -10:00
Simon Michael
4e5506da1e
;cabal: update cabal files
2025-03-07 18:49:08 -10:00
Simon Michael
10c523c057
;pkg: set version to 1.42.99
2025-03-07 18:49:07 -10:00
Simon Michael
a953120fbf
fix:web: fix a cabal file ghc-options issue that hackage now rejects
2025-03-07 07:54:00 -10:00
Simon Michael
fd0bcdfede
;doc: finalise changelogs for 1.42 on 2025-03-06
2025-03-07 06:36:53 -10:00
Simon Michael
8184d20b9f
;doc: update changelogs
2025-03-07 06:36:15 -10:00
Simon Michael
e25cd526b7
;doc: update embedded manuals
2025-03-06 16:05:55 -10:00
Joschua Kesper
5114962b2a
feat:csv: add an encoding rule, allowing non-UTF8 CSV to be read [ #2319 ]
...
Previously, hledger could read CSV files containing non-ascii
characters only if they are UTF8-encoded. Now there is a new CSV
rule, encoding ENCODING, which allows reading CSV files with other
encodings.
This adds a dependency on the encoding library, which supports fewer
encodings than text-icu but does not require a third-party C library.
To avoid build issues on various platforms, we require version 0.10+.
This adds some use of the ImplicitParams language extension, required
by encoding's API, but only in a small code region.
This also changes the type of Reader's rReadFn; it now takes
a `Handle` rather than a `Text`, allowing more flexibility.
2025-02-15 14:48:30 -10:00
Simon Michael
efa101091c
fix:web: -threaded is needed in test suite now also
2024-12-20 11:40:28 -10:00
Simon Michael
ffc3440313
;doc: update embedded manuals
2024-12-09 17:58:30 -10:00
Simon Michael
f2cb3cd023
;cabal: update cabal files
2024-12-09 17:58:25 -10:00
Simon Michael
20f1f51a9d
;pkg: set version to 1.41.99
2024-12-09 17:58:24 -10:00
Simon Michael
58d461d5ee
;doc: changelogs: fix heading
2024-12-09 16:03:40 -10:00
Simon Michael
77a25b6423
;doc: merge 1.41 changelogs
2024-12-09 15:46:35 -10:00
Simon Michael
917f03b828
;doc: changelogs
2024-12-06 18:05:28 -10:00
Simon Michael
f648903b37
imp:print:beancount: don't add account tags to postings
...
When print is generating beancount output, turn off the usual
inheritance of account tags by postings; it would generate excessive
metadata in the journal. Beancount can do or not do that kind of
inheritance itself.
2024-12-06 05:55:42 -10:00
Simon Michael
fd9c64a4ad
pkg: allow megaparsec 9.7 [stackage#7585]
2024-12-03 08:46:29 -10:00
Simon Michael
80fa7e2db6
dev:clarify: rename jinferredcommodities to jinferredcommoditystyles
2024-11-02 15:52:07 -10:00
Simon Michael
659e493b30
;doc: update changelogs
2024-10-30 19:01:49 -10:00
Simon Michael
50bf401ea6
dev: split debug/ghcdebug flags, comment out the latter for now
...
Compilation with ghc-debug is failing, and it has not yet been used
for anything. Separate the flag and leave it in place but commented for now.
2024-10-24 10:44:28 -10:00
Simon Michael
95ef5fad9a
;doc: update manuals
2024-10-20 09:26:32 -10:00
Simon Michael
5bf48d721a
cabal: update cabal files
2024-10-19 18:50:40 -10:00
Simon Michael
7325b75d5b
imp: rename ghcdebug build flag to debug, and enable stack traces with it
...
Builds made with ghc 9.10+ and the 'debug' build flag, will show
(some kind of, partial) stack traces when the program ends with an
error. (And also will have ghc-debug support enabled.)
The stack traces will probably improve in due course.
2024-10-19 18:47:03 -10:00
Simon Michael
b6a5687a38
imp: cli, web: disable ghc 9.10+'s stack traces here too
...
Starting to see them also from hledger now.
2024-10-19 18:33:58 -10:00
Simon Michael
6893f342af
imp: cli,ui,web: begin controlling GHC 9.10+'s stack traces
2024-10-19 16:56:14 -10:00
Simon Michael
b940254025
imp:cli: detect --color more safely in most cases
...
--color now also works in a config file, like --pager, except for two
cases: it does not affect colouring of debug output, or the colouring
helpers used in the check recentassertions error message.
2024-10-19 16:28:36 -10:00
Simon Michael
711d921774
imp:cli: --no-pager -> --pager, make this and --color safe options
2024-10-19 16:28:36 -10:00
Simon Michael
1fa8b79640
;doc: update manuals
2024-10-15 16:36:54 -10:00
Simon Michael
6bd5012b9b
;doc: changelogs
2024-10-15 16:36:54 -10:00
Simon Michael
f54805a034
;doc: update changelogs
2024-10-03 04:47:50 -10:00
Simon Michael
1c45496f1c
dev: web: fix build with ghc <9.2
2024-09-30 17:20:13 -10:00
Simon Michael
bb551bf0dc
;doc: update changelogs
2024-09-30 17:20:13 -10:00
Simon Michael
1b60ebb61f
;cabal: update cabal files
2024-09-30 17:20:13 -10:00
Simon Michael
6225ac8a22
imp!: support ghc 9.10 / base 4.20
...
When built with ghc 9.10.1, hledger error messages are displayed
with an extra newline following them.
https://gitlab.haskell.org/ghc/ghc/-/issues/25116
2024-09-30 17:15:59 -10:00
Simon Michael
a494e15d55
;doc: update manuals
2024-09-29 12:13:50 -10:00
Henning Thielemann
b74815287d
web: RegisterR.getRegisterR.addCommas: do not drop last account
...
Bug was introduced in commit 2a99b3d456
in an effort to get rid of partial List.tail,
because GHC-9.8 started to warn about it.
Problem is that the rewritten code with tailDef always removes the last account,
whereas the original intention was to replace all accounts by a comma except the last one.
addCommas should prepare a comma separated list like List.intercalate.
2024-09-24 20:42:32 -10:00
Simon Michael
07b3cc495b
fix: web: enable autocomplete in newly created account fields [ #2215 ]
2024-09-24 09:35:35 -10:00
Simon Michael
896a20ad98
dev: web: cleanup: more explicit globals; and match inputs more carefully [ #2215 ]
...
(Don't match the hidden duplicate inputs created by typeahead.js)
2024-09-24 09:35:35 -10:00
Simon Michael
9589941bb4
;doc: update changelogs
2024-09-17 07:20:27 -07:00
Simon Michael
ff0fe62fac
;doc: cli, ui, web: mention/link to shell completions
2024-09-17 06:39:23 -07:00
Simon Michael
30aeb662f2
doc: update manuals
2024-09-09 14:09:28 -07:00
Simon Michael
27e6eb0024
;cabal: update cabal files
2024-09-09 14:06:06 -07:00
Simon Michael
c079725836
;pkg: bump version to 1.40.99
2024-09-09 14:06:06 -07:00
Simon Michael
3b73360584
;doc: update changelogs
2024-09-09 14:04:43 -07:00
Simon Michael
979c387663
;doc: changelogs: 1.40
2024-09-09 14:04:08 -07:00
Simon Michael
fa8d223858
imp: web: guess a more robust base url when --base-url is not used
...
A followup to #2099 , #2100 and #2127 . Now relative links to js/css
resources will use the same hostname etc. the main page was requested
from, making them work better when accessed via multiple IP
addresses/hostnames without an explicit --base-url setting.
2024-07-18 10:12:40 +01:00
Simon Michael
13a5299237
imp: web: require a http[s] scheme in --base-url
...
Previously it accepted just a hostname, and generated bad links.
2024-07-18 10:10:26 +01:00
Simon Michael
c0a4983e87
;dev: web: refactor
2024-07-18 09:14:56 +01:00
Simon Michael
65c30bceb6
;doc: update manuals
2024-06-27 00:24:23 +01:00
Simon Michael
5f285a56ab
doc: update manuals
2024-06-25 18:37:55 +01:00
Simon Michael
6c294e91d6
fix: ui, web: accept valueless --debug flag again
2024-06-25 18:37:55 +01:00
Simon Michael
46cda5e7de
imp: cli: allow command options to be written before the command also
...
It's clearer to write command-specific flags after the command name
argument, but that's no longer required.
(Writing non-builtin, addon-specific flags after -- is still required).
Also, give up on "obey help/doc/version flags even if there's a bad
command/flag", it's too hard to do well.
2024-06-25 18:37:54 +01:00
Simon Michael
4f0e07d024
;doc: changelogs: bump to latest commit
2024-06-01 14:14:24 -10:00
Simon Michael
8f24fad909
;doc: merge 1.34 release docs
2024-06-01 14:13:57 -10:00
Simon Michael
3f3672e999
;doc: update manuals
2024-06-01 13:30:47 -10:00
Simon Michael
d18c00e1ec
;cabal: update cabal files
2024-06-01 13:30:21 -10:00
Simon Michael
aec28842c7
;pkg: bump version to 1.34.99
2024-06-01 13:30:20 -10:00
Simon Michael
311be367b0
;doc: cli: simplify, use generic help flags again
2024-05-31 19:54:18 -10:00
Simon Michael
a5a067204e
;doc: JSON output, web: link to OpenAPI spec
2024-05-31 19:41:23 -10:00
Simon Michael
88f70eba6b
;doc: cli, ui, web: synopsis, options cleanup/consistency
2024-05-31 19:41:01 -10:00
Simon Michael
12eaee8dcb
;doc: update manuals
2024-05-29 17:02:13 -10:00
Simon Michael
d47513c669
;doc: sync command summaries between manuals and tldr, updating both
2024-05-29 17:00:11 -10:00
Simon Michael
85cf808183
;doc: update manuals
2024-05-29 16:12:48 -10:00
Simon Michael
152b20413c
doc: update manuals
2024-05-29 15:32:19 -10:00
Simon Michael
c5f8444627
feat: hledger's tldr pages are now built in, accessible via --tldr
...
And a few cleanups/fixes related to flag processing.
The help flags are now listed in order of precedence.
2024-05-29 15:32:19 -10:00
Simon Michael
82230e5a1f
imp: cli: end help output with a blank line
2024-05-29 14:45:04 -10:00
Simon Michael
5f255e28ee
;doc: update/simplify general options list in the manuals
2024-05-29 10:00:34 -10:00
Simon Michael
f88aa8f871
imp: cli: --info before --man
2024-05-29 09:37:20 -10:00
Simon Michael
a366f3aeaa
imp: ui, web, cli, all cli commands now show the general flags grouped
...
And cli/ui/web each have their own more specific help flags.
2024-05-29 09:37:19 -10:00
Simon Michael
d817254290
;doc: update changelogs
2024-05-07 16:45:21 -10:00
Simon Michael
a7026d694e
;imp: web: a basic openapi specification of the current HTTP-JSON API
2024-05-02 16:49:12 -10:00
Simon Michael
2a659e18db
;doc: changelogs: 1.33.1
2024-05-02 00:46:15 -10:00
Simon Michael
02e242c9b1
;doc: update changelogs
2024-05-01 23:23:37 -10:00
Simon Michael
4c53ab419b
cabal: update cabal files
2024-05-01 13:44:14 -10:00
Simon Michael
d17b32c7eb
imp: cli,ui,web: support ghc-debug for analysing memory/profile info
...
When built with the ghcdebug flag and started with --debug=-1 (or -2
to pause at startup, or -3 to pause before exit), hledger can be
controlled by ghc-debug clients like ghc-debug-brick or a custom
ghc-debug query script.
Also, refactor version string code.
2024-05-01 13:43:04 -10:00
Simon Michael
1c5fd0c6a3
;doc: update changelogs
2024-04-26 17:09:17 -10:00
Simon Michael
160bfff51d
;cabal: update cabal files
2024-04-25 06:52:09 -10:00
Simon Michael
23d13c9a9f
imp: web: support base64 >=1.0
2024-04-25 06:51:34 -10:00
Simon Michael
27d5f14553
;doc: changelogs: 1.33: fix issue links (using md-issue-refs.el)
2024-04-22 15:58:05 -10:00
Simon Michael
4ae62a1833
;doc: update manuals
2024-04-18 13:35:28 -10:00
Simon Michael
f59cb5ff3c
;cabal: update cabal files
2024-04-18 13:33:43 -10:00
Simon Michael
f5c4d99291
;pkg: bump version to 1.33.99
2024-04-18 13:33:42 -10:00
Simon Michael
9651082fde
;doc: bump release date to 4/18
2024-04-18 13:20:12 -10:00
Simon Michael
997653e3b9
;doc: changelogs: 1.33
2024-04-18 13:19:34 -10:00
Simon Michael
76f98f28fd
;doc: update manuals
2024-03-24 14:22:54 -10:00
Simon Michael
cb0b054df7
doc:web: mention -E flag, and cost hiding, and zero balances that aren't [ #2140 ]
2024-03-01 23:09:27 -10:00
Simon Michael
bac7171454
imp:web: show zero amounts with their commodity symbol(s?) [ #2140 ]
...
This was mainly to make the sidebar more informative,
but also affects and hopefully helps, all amounts displayed elsewhere.
2024-03-01 22:51:48 -10:00
Simon Michael
7e3b205309
dev:web: give amounts in the sidebar the "amount" class also
2024-03-01 22:24:06 -10:00
Simon Michael
ce0990d1e2
;cabal: update cabal files
2024-02-29 01:08:37 -10:00
Simon Michael
d755699c9b
imp:stats: also show RTS memory usage stats
2024-02-29 01:07:04 -10:00
Simon Michael
697e5a5671
;cabal: update cabal files
2024-02-28 15:34:11 -10:00
Simon Michael
3798a3baef
pkg: require safe >=0.3.20, for ghc 9.8 head/tail helpers
2024-02-28 14:39:53 -10:00
Simon Michael
85836eaa21
;doc: update manuals
2024-02-18 14:59:10 -10:00
Simon Michael
862758d6a3
;cabal: update cabal files
2024-02-18 14:58:38 -10:00
Simon Michael
17817650da
;fix:pkg:web: set upper bound to exclude base64 1.0 [ #2166 ]
2024-02-18 14:57:46 -10:00
Martijn van der Ven
a7c5225498
fix: css to preserve linebreaks in messages
2024-02-04 16:42:09 -10:00
Simon Michael
aa69eb188a
;doc: update changelogs
2024-01-28 02:34:54 -10:00
Simon Michael
32ef1e3dd9
;doc: update manuals
2024-01-26 22:49:07 -10:00
Simon Michael
df79aa5e35
dev: distinguish oneLineFmt and oneLineNoCostFmt; add fullZeroFmt
2024-01-23 21:35:06 -10:00