Commit Graph

229 Commits

Author SHA1 Message Date
Simon Michael
57ac01acde ;tools: bump to lts-24.8 2025-09-01 12:42:27 +01:00
Simon Michael
424e072268 ;pkg: bump default build, tools to lts 24.2 / ghc 9.10.2 2025-07-28 17:03:32 +01:00
Simon Michael
26991b86e9 ;pkg:stack: cleanups 2025-05-28 17:31:29 -10:00
Simon Michael
666abefba9 ;pkg:stack: bump all to 2025-04-01 snapshot
This also bumps to fsnotify-0.4.2.0 and hfsevents-0.1.8, fixing some
events being ignored on mac (https://github.com/luite/hfsevents/pull/19),
which could make hledger-ui --watch more reliable (though I haven't
noticed that problem).
2025-04-02 13:20:03 -10:00
Simon Michael
e19ef2de42 ;pkg: bump stack snapshots 2025-03-07 06:37:15 -10:00
Simon Michael
75c0197c08 pkg:stack: use latest snapshots 2025-02-15 15:22:33 -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
a92f880a20 ;pkg: stack: use latest nightly, simpllify stack.yaml 2024-12-18 18:06:05 -10:00
Simon Michael
4708065fb4 pkg:stack: prefer ghc-9.10.1's lib versions, minimise build issues 2024-12-03 16:07:57 -10:00
Simon Michael
e44a2207d8 ;pkg:stack: note unix issue 2024-12-03 08:33:44 -10:00
Simon Michael
436b2ab3fb pkg:stack: try to avoid a doctest>unix link failure
("multiple definition of __hsunix_get_environ")
2024-12-02 23:40:34 -10:00
Simon Michael
784a95de29 ;ci: mac, windows: fix time dep 2024-12-02 20:41:25 -10:00
Simon Michael
84254ca2b8 ;ci: windows: explicit time dep required 2024-12-02 17:40:29 -10:00
Simon Michael
645da4a74f ;pkg: bump to latest stackage snapshot 2024-12-02 17:13:28 -10:00
Simon Michael
31469ba6cc ;stack: base-compat-batteries seems not needed 2024-10-24 10:44:28 -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
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
8fdbcdda5d ;dev: stack: additional extra deps required on windows 2024-09-30 17:20:13 -10:00
Simon Michael
1a0b1034b6 dev: make ghc 9.10 the default for dev builds and some github actions 2024-09-30 17:20:13 -10:00
Simon Michael
ebd8a87177 dev: rename stack.yaml to 9.8 2024-09-30 17:20:13 -10:00
Simon Michael
d12ec3b015 ;dev: stack: drop no longer needed brick override 2024-09-29 13:28:46 -10:00
Simon Michael
45b862f84f ;dev: bump to latest stackage nightly 2024-09-28 08:39:06 -10:00
Simon Michael
55d47ceacd fix:pkg:ui: avoid brick 2.3.2 which doesn't build on windows
That version depends on unix as well as unix-compat.
2024-09-09 14:03:41 -07:00
Simon Michael
08a356a7cb ;dev: pkg: bump to latest nightly stackage snapshot 2024-09-09 14:03:35 -07:00
Simon Michael
0d878415e9 ;pkg: stack: bump to latest nightly; bump various script snapshots 2024-07-12 12:45:00 +01: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
9726aa3f5f ;pkg: stack: bump to latest nightly 2024-05-01 20:46:06 -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
23d13c9a9f imp: web: support base64 >=1.0 2024-04-25 06:51:34 -10:00
Simon Michael
ee3d2c0e38 ;pkg: stack: bump to latest nightly, drop vty-windows extra-dep 2024-04-22 22:03:54 -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
8e0adec126 pkg:stack: bump dev build to latest/ghc 9.8.2 2024-04-07 23:47:27 -10:00
Simon Michael
98a93d979a ;pkg:stack: bump to latest nightly & ghc 9.8.2 2024-03-17 10:54:02 -10:00
Simon Michael
8f1ae401f4 dev: fix some partial head/tails, silence ghc 9.8's new warnings
Note the headErr/tailErr calls will print stack traces if they fail
(small ones: five lines, one of which is the useful location info),
which may or may not be best UX.
2024-02-28 15:58:21 -10:00
Simon Michael
4cec8aa0d7 pkg:stack:9.8: make default 2024-02-28 13:35:15 -10:00
Simon Michael
bf40a1ae25 pkg:stack:9.6: make non-default 2024-02-28 13:34:32 -10:00
Simon Michael
41e14634ff pkg:stack:9.6: updates 2024-02-28 13:34:07 -10:00
Simon Michael
fb1c223567 ;stack: bump to lts 22.7/ghc 9.6.4 2024-01-27 11:28:11 -10:00
Simon Michael
19461010f8 ;pkg:stack: use lts 22.4 2024-01-04 08:39:29 -10:00
ShrykeWindgrace
ce02f20d29 feat: support hledger-ui on windows
Introduced or bumped dependencies:

- brick-2.1.1
- vty-6.1
- vty-crossplatform-0.4.0.0
- vty-windows-0.2.0.1 conditionally on windows (current version of
  vty-crossplatform has 0.2.0.0 as a lower bound, need to put a newer version explcitly;
  once we get a newer vty-crossplatform, we will be able to drop this conditional)
- vty-unix (indirectly via vty-crossplatform)
2023-12-19 08:20:16 -10:00
Simon Michael
f7262ae4e8 dev:stack: bump default GHC to 9.6.3 2023-10-15 13:56:47 +01:00
Simon Michael
936e1b9d0a pkg:stack: build with nightly/ghc 9.6 by default 2023-09-12 07:26:36 +01:00
Simon Michael
6e0523d7b8 pkg: stack: bump default build to lts-21.9, ghc 9.4.6 2023-09-03 08:23:43 +01:00
Simon Michael
e3bf66755a ;pkg:stack: bump stackage snapshots 2023-07-01 08:14:23 -10:00
Simon Michael
4804e1be6d ;dev: bump to latest stackage nightly 2023-06-20 19:37:41 -10:00
Simon Michael
438891b2c5 ;dev: stack: bump to nightly-2023-05-31 2023-05-31 18:57:30 -10:00
Simon Michael
5fa5e3f0f0 ;dev: stack: bump to ghc 9.4.5 2023-05-03 19:18:35 -10:00
Simon Michael
1f42501278 pkg: stack cleanups 2023-04-07 14:15:31 -10:00