hledger/hledger-lib/Hledger
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
..
Data imp:print: --invert now also negates balance assertion/assignment amounts [#2314] 2025-01-29 09:47:29 -10:00
Read feat:csv: add an encoding rule, allowing non-UTF8 CSV to be read [#2319] 2025-02-15 14:48:30 -10:00
Reports feat:csv: add an encoding rule, allowing non-UTF8 CSV to be read [#2319] 2025-02-15 14:48:30 -10:00
Utils feat:csv: add an encoding rule, allowing non-UTF8 CSV to be read [#2319] 2025-02-15 14:48:30 -10:00
Write dev: refactor Hledger.Write.Html etc, reducing Lucid references 2025-01-25 11:53:51 -10:00
Data.hs lib: add Hledger.Data.Currency, currencySymbolToCode, currencyCodeToSymbol 2024-10-11 14:56:03 -10:00
Query.hs imp: queries: Allow regular expression depth queries 2024-12-03 08:33:21 -10:00
Read.hs feat:csv: add an encoding rule, allowing non-UTF8 CSV to be read [#2319] 2025-02-15 14:48:30 -10:00
Reports.hs cln: tests: Remove test and tests, which are just aliases for testCase 2021-08-30 16:32:19 -10:00
Utils.hs dev: fix warnings with ghc 9.10 / base 4.20 2024-09-30 17:20:13 -10:00