hledger icon indicating copy to clipboard operation
hledger copied to clipboard

can't :print or :sprint a Journal in GHCI

Open simonmichael opened this issue 9 years ago • 1 comments

This seems to hang or produce way too much output:

ghci> j <- defaultJournal
ghci> :sprint j

Perhaps because of the knot-tying between transactions and postings ? (A Journal contains Transactions, which contain Postings, and Postings also reference the Transaction which contains them).

Being able to use these commands would be good for debugging/optimising.

simonmichael avatar May 23 '16 17:05 simonmichael

It seems to simply be extremely slow, try a very small journal (something like three transactions or even mempty) and it works, but increasing the number of journals makes it significantly slower.

cocreature avatar Jul 14 '16 07:07 cocreature