hledger
hledger copied to clipboard
can't :print or :sprint a Journal in GHCI
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.
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.