Henning Thielemann
f306df6d61
imp: lib: Write.Html: use Lucid to generate HTML
2024-08-16 16:57:38 +02:00
Henning Thielemann
8c42a735c2
cli: lib: Write.Spreadsheet: common data types for Write.Ods and Write.Html
...
Write.Html: write spreadsheet data to a HTML table
enables HTML export for the balance command
2024-08-16 16:57:38 +02:00
Henning Thielemann
0e158d0c3e
cli: lib: Hledger.Write.Ods: basic support for FODS export
...
used in Commands.Balance
2024-08-16 16:57:38 +02:00
Henning Thielemann
14b5a1f82a
imp: Hledger.Read.CsvUtils -> Write.Csv
2024-08-16 16:57:38 +02:00
Simon Michael
aec28842c7
;pkg: bump version to 1.34.99
2024-06-01 13:30:20 -10:00
Simon Michael
8d62af8ae0
imp: Revert problematic process-1.6.19.0 bound, it seems not strictly needed [ #2149 ]
2024-05-01 23:04:08 -10:00
Simon Michael
96caa8f352
fix: detect ghc-debug support more accurately, checking hledger-lib also
2024-05-01 15:27:42 -10:00
Simon Michael
f5c4d99291
;pkg: bump version to 1.33.99
2024-04-18 13:33:42 -10:00
Simon Michael
e4cbd88367
;pkg:lib: disable doctests for now to allow use of process-1.6.19.0
2024-04-11 11:14:46 -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
2a99b3d456
imp: stack: build with ghc 9.8, latest stackage nightly
2024-01-04 08:24:50 -10:00
Simon Michael
a3290bfaeb
pkg: allow megaparsec 9.6*
2023-12-14 08:57:42 -10:00
Simon Michael
80d1da2db9
;pkg: bump version to 1.32.99
2023-12-02 09:09:07 -10:00
Simon Michael
e2cc2d7e24
feat:print: add a basic beancount output format
...
This prints journal output more likely (but not guaranteed) to
be readable by Beancount.
All packages now require text 1.2.4.1 or greater.
2023-11-22 22:57:36 -10:00
Simon Michael
2e06c8dc27
;doc: package description cleanups
2023-10-04 10:03:35 +01:00
Simon Michael
6f7c331ace
;pkg: bump version to 1.31.99
2023-09-11 09:56:34 +01:00
Simon Michael
9c4235bf88
pkg: allow megaparsec 9.5
2023-09-03 08:23:43 +01:00
Simon Michael
1a0b745c28
pkg: add support for aeson 2.2, add upper bound
2023-07-01 08:14:23 -10:00
Simon Michael
1bd1c55bd6
;pkg: update tested-with
2023-07-01 07:34:46 -10:00
Simon Michael
110861ee83
;pkg: allow megaparsec 9.4
2023-06-16 12:11:08 -10:00
Simon Michael
9ae87a73fa
;pkg: bump version to 1.30.99
2023-06-01 16:34:52 -10:00
Simon Michael
029b59093b
feat: csv: rules files can be read directly; data file can be specified
...
CSV rules files can now be read directly, eg you have the option of
writing `hledger -f foo.csv.rules CMD`. By default this will read data
from foo.csv in the same directory. But you can also specify a
different data file with a new `source FILE` rule. This has some
convenience features:
- If the data file does not exist, it is treated as empty, not an
error.
- If FILE is a relative path, it is relative to the rules file's
directory. If it is just a file name with no path, it is relative
to ~/Downloads/.
- If FILE is a glob pattern, the most recently modified matched file
is used.
This helps remove some of the busywork of managing CSV downloads.
Most of your financial institutions's default CSV filenames are
different and can be recognised by a glob pattern. So you can put a
rule like `source Checking1*.csv` in foo-checking.csv.rules,
periodically download CSV from Foo's website accepting your browser's
defaults, and then run `hledger import checking.csv.rules` to import
any new transactions. The next time, if you have done no cleanup, your
browser will probably save it as something like Checking1-2.csv, and
hledger will still see that because of the * wild card. You can choose
whether to delete CSVs after import, or keep them for a while as
temporary backups, or archive them somewhere.
2023-05-19 09:09:21 -10:00
Simon Michael
be8e64e498
imp: lib: export more terminal size, ANSI style/color helpers
...
Hledger.Utils.IO (and therefore Hledger and Hledger.Cli.Script) added:
getTerminalHeightWidth
getTerminalHeight
getTerminalWidth
Color(..)
ColorIntensity(..)
bold'
faint'
black'
red'
green'
yellow'
blue'
magenta'
cyan'
white'
brightBlack'
brightRed'
brightGreen'
brightYellow'
brightBlue'
brightMagenta'
brightCyan'
brightWhite'
rgb'
2023-03-18 19:59:00 -10:00
Simon Michael
44805f96ef
;dev: ui, web: fixes for ghc 9.6; cleanup ( #2011 )
2023-03-15 20:43:51 -10:00
Simon Michael
c790aa6145
;dev: lib: also build with GHC 9.6.1; add base-compat
2023-03-14 10:42:48 -10:00
Simon Michael
a0ca339c46
;pkg: bump version to 1.29.99
2023-03-11 13:27:25 -10:00
Simon Michael
41e838ef83
fix: lib: avoid using pager on Windows, the package is not supported
2023-03-10 19:14:13 -10:00
Simon Michael
1da4fd1eaf
imp: lib: terminal colour detection
...
added:
terminalIsLight
terminalFgColor
terminalBgColor
2023-01-26 22:11:20 -10:00
Simon Michael
4387e6ffb5
pkg: stack: bump to latest snapshots, depend on text-ansi, add extra deps
2023-01-25 19:15:45 -10:00
Simon Michael
d77d76e17f
imp: cli: use $PAGER when help output is taller than terminal
...
This works with hledger, hledger -h and hledger CMD -h.
2023-01-25 17:20:27 -10:00
Simon Michael
d0eaa8cf5a
dev: force megaparsec 9.3 in stack build plans where supported
...
For the useful dbg tool.
2022-12-22 20:31:47 -10:00
Simon Michael
e9e8f350f2
dev: require megaparsec 9.3+ in dev build, for its useful dbg tool
...
The 9.3 version works with our parsers.
2022-12-22 19:25:57 -10:00
Simon Michael
740ea50e4c
;pkg: bump version to 1.28.99
2022-12-01 12:23:10 -08:00
Simon Michael
fa8f6ae302
lib: Debug: breakpoint doesn't support windows yet, drop for now
2022-12-01 12:20:29 -08:00
Felix Yan
66b51472f2
Allow megaparsec 9.3
...
Builds fine and all tests pass.
2022-11-30 05:12:04 -05:00
Simon Michael
3a6955d3e2
dev: add stack9.4.yaml for building with latest nightly/ghc 9.4.3
2022-11-25 23:45:17 -05:00
Simon Michael
fc8aa5253a
dev: lib: Hledger.Utils.Print -> Hledger.Utils.IO
2022-11-04 18:39:31 -10:00
Simon Michael
fd82fa48c9
imp: lib: separate Hledger.Utils.Print
...
Moved from Hledger.Utils.Debug to Hledger.Utils.Print:
pshow
pshow'
pprint
pprint'
colorOption
useColorOnStdout
useColorOnStderr
outputFileOption
hasOutputFile
2022-10-29 12:39:46 -10:00
Simon Michael
e5bb4f0b66
;pkg: bump version to 1.27.99
2022-09-01 18:37:40 -07:00
Simon Michael
ab01c7c2a2
lib: re-enable doctests with ghc 8.10, to improve CI test
2022-08-29 11:09:16 +01:00
Simon Michael
c80c72d7cd
dev: lib, cli, bin: enable/fix name shadowing warnings
...
And a few other cleanups.
2022-08-23 12:16:15 +01:00
Simon Michael
9584ebb439
imp: lib: Hledger.Utils.Debug: re-export Debug.Breakpoint
...
And add breakpoint as a dependency and enable its GHC plugin in all
the hledger packages, so that breakpoint's helpers can be used easily.
2022-08-23 02:02:19 +01:00
Simon Michael
6a4680d561
imp: pkg: drop support for GHC 8.6 and 8.8
...
Slightly motivated by a desire to depend on the new breakpoint
library, which requires GHC 8.10+. With GHC 9.0 in Debian,
it seems time to drop these.
2022-08-23 02:02:19 +01:00
Simon Michael
b7b09f991a
imp: lib: Hledger.Utils.Debug: fix debug logging to file
...
dlog has been replaced by more reliable functions for debug-logging
to a file, useful for debugging TUI apps like hledger-ui:
dlogTrace
dlogTraceAt
dlogAt
dlog0
dlog1
dlog2
dlog3
dlog4
dlog5
dlog6
dlog7
dlog8
dlog9
Monochrome pprint' and pshow' have been added.
New dependency: deepseq
2022-08-23 00:50:51 +01:00
Simon Michael
797cac4fc6
pkg: require safe 0.3.19+ to avoid deprecation warning
2022-07-11 06:03:14 +01:00
Simon Michael
3e728b1d36
;pkg: bump version to 1.26.99
2022-06-05 00:32:18 +01:00
Simon Michael
05dffe5029
imp: lib: allow doclayout 0.4
2022-06-04 11:24:35 +01:00
Stephen Morgan
9155d679fe
fix!: Revert "fix!: utf-8: Use with-utf8 to ensure all files are read and written with utf8 encoding. ( #1619 )"
...
This reverts commit e233f001c5 .
This would break at least some people's workflow. A lighter touch is
probably sufficient.
2022-06-01 09:35:18 +10:00
Simon Michael
a9779b2377
ref: move journal checking/pretty errors down further, to Hledger.Data
...
now at Hledger.Data.JournalChecks*, Hledger.Data.Errors
2022-05-21 18:29:13 -10:00
Stephen Morgan
e233f001c5
fix!: utf-8: Use with-utf8 to ensure all files are read and written with utf8 encoding. ( #1619 )
...
May also fix #1154 , #1033 , #708 , #536 , #73 : testing is needed.
This aims to solve all problems where misconfigured locales lead to
parsers failing on utf8-encoded data. This should hopefully avoid
encoding issues, but since it fundamentally alters how encoding is dealt
with it may lead to unexpected outcomes. Widespread testing on a number
of different platforms would be useful.
2022-05-22 13:12:19 +10:00