packages feed

hledger-iadd 1.2 → 1.2.1

raw patch · 4 files changed

+21/−15 lines, 4 filesdep ~brickdep ~megaparsecPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: brick, megaparsec

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,8 @@+# 1.2.1++  - Support for hledger-lib-1.2+  - Minor documnentation fixes+ # 1.2    - Add support for comments (bound to `;`)
README.md view
@@ -102,7 +102,8 @@   - `--date-format`: Format for parsing dates. (Default:     `[[%y/]%m/]%d`, the usual ledger date format). Brackets can be     used to specify optional parts. E.g the german date format would-    be `%d[.[%m[.[%y]]]]`+    be `%d[.[%m[.[%y]]]]`. (Dates are written as `y/m/d` to the+    journal regardless of this option).   - `--completion-engine`: Algorithm for account name completion. Can     be `substrings` or `fuzzy`.   - `--dump-default-config`: Print the example config file to stdout@@ -192,6 +193,14 @@ 	- `fuzzy`: All letters from the search string have to appear in       the name in the same order +## License +The code of `hledger-iadd` is released under the [BSD3] license, but+since `hledger-lib` -- the library that `hledger-iadd` uses -- is+licensed under the [GPLv3], the terms of the GPL apply to the compiled+and linked binary.+ [stack]: https://github.com/commercialhaskell/stack [haskell platform]: https://www.haskell.org/platform/+[BSD3]: https://opensource.org/licenses/BSD-3-Clause+[GPLv3]: https://www.gnu.org/licenses/gpl-3.0.en.html
hledger-iadd.cabal view
@@ -1,5 +1,5 @@ name:                hledger-iadd-version:             1.2+version:             1.2.1 synopsis:            A terminal UI as drop-in replacement for hledger add description:         This is a terminal UI as drop-in replacement for hledger add.                      .@@ -56,7 +56,7 @@                      , Brick.Widgets.Edit.EmacsBindings   default-language:    Haskell2010   build-depends:       base >= 4.8 && < 5-                     , hledger-lib >= 1.0 && < 1.2+                     , hledger-lib >= 1.0 && < 1.3                      , brick >= 0.15.2 && < 0.18                      , vty >= 5.4                      , text@@ -81,7 +81,7 @@   default-language:    Haskell2010   build-depends:       base >= 4.8 && < 5                      , hledger-iadd-                     , hledger-lib >= 1.0 && < 1.2+                     , hledger-lib >= 1.0 && < 1.3                      , brick >= 0.15.2 && < 0.18                      , vty >= 5.4                      , text@@ -110,7 +110,7 @@   default-language:   Haskell2010   build-depends:      base >= 4.8 && < 5                     , hledger-iadd-                    , hledger-lib >= 1.0 && < 1.2+                    , hledger-lib >= 1.0 && < 1.3                     , text                     , transformers >= 0.3                     , time >= 1.5
tests/ModelSpec.hs view
@@ -164,16 +164,8 @@    where     mkPosting :: (Text, Int) -> HL.Posting-    mkPosting (account, amount) = HL.Posting-      { HL.pdate = Nothing-      , HL.pdate2 = Nothing-      , HL.pstatus = HL.Uncleared-      , HL.paccount = account+    mkPosting (account, amount) = HL.nullposting+      { HL.paccount = account       , HL.pamount = HL.mixed [HL.eur (fromIntegral amount)]-      , HL.pcomment = ""-      , HL.ptype = HL.RegularPosting-      , HL.ptags = []-      , HL.pbalanceassertion = Nothing-      , HL.ptransaction = Nothing       }