Thanks for the clarifications John.
John Wiegley wrote:
- in register report, account patterns always match against the full
account name
That's correct. /foo/ matches against the full name, //foo/ against
the partial name.
I'll take this one to #ledger I think.
- but in balance report, account patterns match only the account's
leaf name, except when they contain : or are negative patterns
That sounds odd!
So it seems to me. If it's a bug, well I guess I just lovingly crafted
the same bug in haskell :) It seemed necessary to match ledger's output.
(I've always tried to make hledger output match yours, to facilitate
testing and to minimise confusion when switching back and forth between
the two.)
Not exactly true. Ledger requires that the *basis cost* balances to
zero. You have to use --basis to see this, in which case the
commodities disappear.
I see, thanks.
Speaking of hledger, things are looking good. I seem to have got past
some humps and progress is now quite pleasant; I'm feeling why people
love haskell. I think I'm just about ready to release this "ledger for
haskellers to hack on". I hope you'll find it interesting and see it as
a high homage to your design!
-Simon