ANN: hledger 0.22

42 views
Skip to first unread message

Simon Michael

unread,
Dec 13, 2013, 10:47:44 PM12/13/13
to hle...@googlegroups.com, ledge...@googlegroups.com, haskel...@haskell.org, has...@haskell.org
Hi all. I have released hledger and hledger-web 0.22.

hledger is a command-line tool and haskell library for tracking
financial transactions, which are stored in a human-readable plain
text format. In addition to reporting, it can also help you record new
transactions, or convert CSV data from your bank. Add-on packages
include hledger-web (providing a web interface), hledger-irr and hledger-interest.
hledger is inspired by and compatible with John Wiegley's Ledger. For
more, see http://hledger.org .

Install it:

cabal update; cabal install hledger [hledger-web]

For more installation help, see http://hledger.org/MANUAL.html#installing .
Or, sponsor a ready-to-run binary for your platform:
http://hledger.org/DOWNLOAD.html .

Release notes (http://hledger.org/NEWS.html#hledger-0.22):

**New:**

- balance: with a reporting interval (monthly, yearly etc.), the
[balance command](MANUAL.html#balance) will now show a
multi-column report, showing either the per-period changes
in balance (by default), the period ending balances starting from
zero (`--cumulative`), or the actual period ending balances (`--historical`).
A more detailed specification of the balance command's behaviour
has been added to Hledger.Cli.Balance.

- csv: rules files can now include other rules files, useful for factoring out
common rules

- queries: `sym:REGEXP` matches commodity symbols

- register: `--average/-A` shows a running average, like ledger

- in period expressions, `-` (hyphen) can be used as a more compact
synonym for `from` and `to`. Eg: `-p 2012/12/1-2013/2/1` or `date:aug-`.

- the add-on script examples in extra/ have been updated; get the
hledger source and add .../hledger/extra/ to your PATH to make them
available. They include:

hledger-accountnames.hs - print account names
hledger-balance-csv.hs - print a balance report as CSV
hledger-equity.hs - print an entry matching all account balances
hledger-print-unique.hs - print only journal entries unique descriptions
hledger-register-csv.hs - print a register report as CSV

**Improved:**

- balancesheet: now shows just assets and liabilities, not equity

- print: comment positions (same line or next line) are now preserved

- queries: `amt` now uses the = operator by default, eg `amt:50` is
equivalent to `amt:=50`

- command line processing has been overhauled and made more
consistent, and now has tests and debug output. More flags now work
both before and after COMMAND: `-f`, `--rule-file`, `--alias`,
`--help`, `--debug`, `--version`. Command line help, command
aliases, API docs and code have been improved.

- `--debug` now takes an optional numeric argument to set the debug level
higher than 1, for more verbose debug output in a few cases.

**Fixed:**

- csv: CSV data containing non-ascii characters is now supported

- build with latest versions of dependencies (text, warp, http-conduit etc.)

**Release contributors:**

Marko Kocić, Max Bolingbroke, and a big welcome to first-time committer John Wiegley! :)

There's a rumour that a 1.0 release could be next, depending on how this one fares. All feedback welcome.

Best!
- Simon

Marko Kocić

unread,
Dec 14, 2013, 1:27:08 PM12/14/13
to hle...@googlegroups.com, ledge...@googlegroups.com, haskel...@haskell.org, has...@haskell.org
I have build problems again after pulling from git.

~/src/hledger$ cabal-dev install ./hledger ./hledger-lib/ ./hledger-web/
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: hledger-0.22 (user goal)
trying: utf8-string-0.3.7 (dependency of hledger-0.22)
rejecting: utf8-string-0.3.7:+bytestring-in-base (conflict:
base==4.6.0.1/installed-ced..., utf8-string-0.3.7:bytestring-in-base =>
base>=2.0 && <2.2)
trying: utf8-string-0.3.7:-bytestring-in-base
trying: bytestring-0.10.0.2/installed-0b6... (dependency of
utf8-string-0.3.7:-bytestring-in-base)
trying: text-1.0.0.0 (dependency of hledger-0.22)
trying: shakespeare-text-1.0.0.10 (dependency of hledger-0.22)
trying: shakespeare-1.2.0.3 (dependency of shakespeare-text-1.0.0.10)
next goal: system-fileio (dependency of shakespeare-1.2.0.3)
rejecting: system-fileio-0.3.11, 0.3.10 (conflict: text==1.0.0.0,
system-fileio => text>=0.7.1 && <0.12)
rejecting: system-fileio-0.3.9, 0.3.8, 0.3.7, 0.3.6, 0.3.5, 0.3.4, 0.3.3,
0.3.2.1, 0.3.2, 0.3.1, 0.3 (conflict: bytestring==0.10.0.2/installed-0b6...,
system-fileio => bytestring>=0.9 && <0.10)
rejecting: system-fileio-0.2.7, 0.2.6, 0.2.5, 0.2.4, 0.2.3, 0.2.2.1, 0.2.2,
0.2.1, 0.2, 0.1.1, 0.1 (conflict: shakespeare => system-fileio>=0.3)
Backjump limit reached (change with --max-backjumps).
marko@monet:~/src/hledger$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3

Simon Michael

unread,
Dec 14, 2013, 10:50:30 PM12/14/13
to hle...@googlegroups.com, ledge...@googlegroups.com, haskel...@haskell.org, has...@haskell.org
It works for me in a fresh cabal-dev package db, which I think yours is not, right ?
 
Installs into an already-populated package db are more troublesome than usual right now because of the recent major version bumps to text, wai, warp, http-conduit etc.
--
-- You received this message because you are subscribed to the Google Groups hledger group. To post to this group, send email to hle...@googlegroups.com. To unsubscribe from this group, send email to hledger+u...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/hledger?hl=en
---
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
 

Marko Kocić

unread,
Dec 15, 2013, 6:36:33 AM12/15/13
to hle...@googlegroups.com, ledge...@googlegroups.com, haskel...@haskell.org, has...@haskell.org
I also had fresh cabal-dev repo, and it didn't work.
However, I was able to build when I added --max-backjumps=10000 to the build line.

Regards,
Marko

Simon Michael

unread,
Dec 15, 2013, 1:43:31 PM12/15/13
to hle...@googlegroups.com, ledge...@googlegroups.com, haskel...@haskell.org, has...@haskell.org
That's odd. Here I have ubuntu raring, ghc 7.6.3, cabal-dev 0.9.2 using Cabal 1.16.0, cabal-install 1.18.0.2 using Cabal 1.18.1. Do you see the same problem with cabal sandbox init; cabal install ./hledger-lib ./hledger ./hledger-web ?

Marko Kocić

unread,
Dec 15, 2013, 2:31:31 PM12/15/13
to hle...@googlegroups.com, ledge...@googlegroups.com, haskel...@haskell.org, has...@haskell.org
Yes, I have the same problem with cabal sandbox.
I'm on Ubuntu 12.04 with binary downloaded ghc-7.6.3, cabal-1.18.0.2 and cabal-dev-0.9.2

Regards,
Marko


You received this message because you are subscribed to a topic in the Google Groups "hledger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hledger/FdWGTSAVzYU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hledger+u...@googlegroups.com.

Simon Michael

unread,
Dec 15, 2013, 2:52:02 PM12/15/13
to hle...@googlegroups.com, ledge...@googlegroups.com, haskel...@haskell.org
Well that's a mystery to me. Given that we've both done a cabal update, I can't think what is causing my cabal to find an install plan with default maxjump and yours not to. Maybe a someone will enlighten us.
 
(I've belatedly dropped the haskell list from this thread.)
Reply all
Reply to author
Forward
0 new messages