hledger-lib 1.42 → 1.42.1
raw patch · 3 files changed
+13/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGES.md +7/−1
- Hledger/Read/RulesReader.hs +5/−2
- hledger-lib.cabal +1/−1
CHANGES.md view
@@ -22,12 +22,17 @@ For user-visible changes, see the hledger package changelog. -# 2025-03-07 1.42+# 2025-03-12 1.42.1 ++# 1.42 2025-03-07+ Improvements - readJournal, when not given a file name, now always assumes it is "-" rather than "(string)". [#2328]+- Reader's rReadFn has changed type (for the new CSV text encoding feature);+ it now takes a `Handle` rather than a `Text`, allowing more flexibility. - Make test/unittest.hs more buildable; remove PackageImports that was causing trouble for ghci. (Thomas Miedema, [#2337])@@ -38,6 +43,7 @@ [#2244] - Added: dropRawOpt, cliOptsDropArgs - Hledger.Data.Amount: showAmountCost(B) now drops leading whitespace.+ # 1.41 2024-12-09
Hledger/Read/RulesReader.hs view
@@ -723,7 +723,7 @@ Left x -> Fail.fail $ "CSV parser: " ++ x Right x -> return x where- double_ampersand = lookAhead . void $ char '&' >> char '&'+ double_ampersand = lookAhead . void $ string "&&" -- -- A match operator, indicating the type of match to perform. -- -- Currently just ~ meaning case insensitive infix regex match.@@ -1596,9 +1596,12 @@ -- parseWithState' defrules matcherp "%description ~ A A\n" @?= (Right $ FieldMatcher "%description" "A A") ] + ,testGroup "regexp" [ testCase "regexp.ends-before-&&" $- parseWithState' defrules (regexp empty) "A A && xxx" @?= (Right $ toRegexCI' "A A")+ parseWithState' defrules (regexp eof) "A A && xxx" @?= (Right $ toRegexCI' "A A")+ ,testCase "regexp contains &" $+ parseWithState' defrules (regexp eof) "A & B" @?= (Right $ toRegexCI' "A & B") ] , let matchers = [RecordMatcher Or (toRegexCI' "A"), RecordMatcher And (toRegexCI' "B")]
hledger-lib.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: hledger-lib-version: 1.42+version: 1.42.1 synopsis: A library providing the core functionality of hledger description: This library contains hledger's core functionality. It is used by most hledger* packages so that they support the same