Simon Michael
cf03f7e428
fix:ui: require fsnotify-0.4.2.0+, detecting events more reliably on mac
...
This requires hfsevents-0.1.8 which fixes some events being ignored on
mac (https://github.com/luite/hfsevents/pull/19 ), possibly making
hledger-ui --watch more reliable in that regard.
2025-04-02 13:22:19 -10:00
Thomas Miedema
bc42f79c77
;dev: remove base-compat from stack*.yaml
2025-03-31 16:21:38 -10:00
Thomas Miedema
bf3d1b6b49
;dev: extra >= 1.7.11 is required
...
Commit ff28aa32 introduced usage of Data.List.Extra.groupOnKey, which
first came with extra-1.7.11.
Fixes stack8.10.yaml build hopefully.
2025-03-31 16:18:09 -10:00
Simon Michael
daf8301ade
;pkg:stack: drop obsolete systemencoding flag [ #2319 ]
2025-02-16 07:19:09 -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
5591be7724
dev: stack: silence wizards bounds warning, hopefully
2024-09-30 17:21:26 -10:00
Simon Michael
1c45496f1c
dev: web: fix build with ghc <9.2
2024-09-30 17:20:13 -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
ae69800fdb
pkg: require vty-windows-0.2.0.2+ to fix recent MS Terminal
...
And add to current stack.yaml too, since it's not yet in stackage.
2024-04-18 13:19:51 -10:00
Simon Michael
69e4a88ccf
pkg: require process 1.6.19.0+ for HSEC-2024-0003
...
This is to avoid potential vulnerabilities on Windows due to the process issue disclosed today:
https://haskell.github.io/security-advisories/advisory/HSEC-2024-0003.html
2024-04-10 08:07:08 -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
9dbb0f6f2a
pkg:stack:8.10: updates (untested)
2024-02-28 13:25:42 -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
c2e7cc5700
pkg: update stackage resolvers, extra deps
2023-03-10 18:58:22 -10:00
Simon Michael
dc35fd173b
pkg: stack: another extra dep needed
2023-01-26 22:25:24 -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
fa8f6ae302
lib: Debug: breakpoint doesn't support windows yet, drop for now
2022-12-01 12:20:29 -08:00
Simon Michael
7bba7e79af
dev: ui: support/require brick 1.5, as in latest stackage nightly
2022-11-26 00:12:28 -05:00
Simon Michael
45ee5d125d
imp: ui: support/require fsnotify 0.4.x
2022-09-19 18:18:50 -10: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
fcdc07b55e
stack: use brick 1.0 with older GHCs also
2022-08-17 15:57:27 +01:00
Simon Michael
2aa7fb9a09
stack: 810, 90 updates
2021-12-16 12:51:05 -10:00
Stephen Morgan
d1ae0c10d6
pkg: Bump stack lts and nightlies.
2021-11-11 18:29:50 -10:00
Simon Michael
3ef9958041
test: doctest cleanups, use latest
2021-07-20 20:38:39 -10:00
Simon Michael
dd8d6336a1
stack: 8.10: rename yaml file
2021-07-20 20:38:39 -10:00
Simon Michael
31868a6892
;stack: build with lts-17/ghc-8.10.3 by default
2021-01-29 15:13:06 -08:00
Simon Michael
c005655311
;stack: 8.10: bump to current nightly
2021-01-28 13:57:35 -08:00
Simon Michael
c20c1b4e2d
stack: 8.10: bump to latest nightly and ghc 8.10.3
2021-01-10 07:56:18 -08:00
Simon Michael
7e667238db
add missing dep for other stack snapshots; also bump GHC 8.10 to .2
2020-11-11 12:52:44 -08:00
Simon Michael
a97daaf322
lib: replace pretty-show with pretty-simple
...
pretty-simple, already used in .ghci, will hopefully give nicer debug
output, including for values which don't have Read-able Show output.
This should mean that we can start removing custom string-like Show
instances that were a workaround for pretty-show.
We are using the latest version (4.0.0.0) to get compact output.
Here's some old pretty-show output:
CsvRules
{ rdirectives = [ ( "skip" , "1" ) ]
, rcsvfieldindexes = [ ( "date" , 1 ) , ( "amount" , 2 ) ]
, rassignments = [ ( "amount" , "%2" ) , ( "date" , "%1" ) ]
, rconditionalblocks = []
}
And the new pretty-simple output:
CsvRules
{ rdirectives=
[ ( "skip", "1" ) ]
, rcsvfieldindexes=
[ ( "date", 1 ), ( "amount", 2 ) ]
, rassignments=
[ ( "amount", "%2" ), ( "date", "%1" ) ]
, rconditionalblocks= []
}
Non-compact pretty-simple output would be:
CsvRules
{ rdirectives=
[
( "skip"
, "1B"
)
]
, rcsvfieldindexes=
[
( "date"
, 1
)
,
( "amount"
, 2
)
]
, rassignments=
[
( "amount"
, "%2"
)
,
( "date"
, "%1"
)
]
, rconditionalblocks=[]
}
Also:
- Account's Show instance no longer converts : to _ in account names
- drop unused pretty-show dependency from hledger, hledger-ui packages
- regenerate hledger-lib with the older hpack that's shipped in stack
2020-11-10 08:06:11 -08:00
Simon Michael
3575cd5958
stack: simplify 8.10 stack file, use stackage nightly
2020-07-05 06:52:16 -07:00
Simon Michael
bebd6d3184
;stack8.10: bump to ghc 8.10.1 release
2020-06-08 15:03:04 -07:00
Simon Michael
204b747664
;stack: drop old probably wrong note
2020-06-06 13:31:05 -07:00
Simon Michael
7b8f0d16fd
;simplify stack.yaml filenames
2020-03-30 15:35:53 -07:00