better RawLedger string representation
This commit is contained in:
parent
3fcb1aaa6c
commit
165945cf20
@ -17,10 +17,13 @@ import Ledger.Transaction
|
|||||||
|
|
||||||
|
|
||||||
instance Show RawLedger where
|
instance Show RawLedger where
|
||||||
show l = printf "RawLedger with %d entries"
|
show l = printf "RawLedger with %d entries, %d accounts: %s"
|
||||||
((length $ entries l) +
|
((length $ entries l) +
|
||||||
(length $ modifier_entries l) +
|
(length $ modifier_entries l) +
|
||||||
(length $ periodic_entries l))
|
(length $ periodic_entries l))
|
||||||
|
(length accounts)
|
||||||
|
(show accounts)
|
||||||
|
where accounts = flatten $ rawLedgerAccountNameTree l
|
||||||
|
|
||||||
rawLedgerTransactions :: RawLedger -> [Transaction]
|
rawLedgerTransactions :: RawLedger -> [Transaction]
|
||||||
rawLedgerTransactions = txns . entries
|
rawLedgerTransactions = txns . entries
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user