mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
simpler Ledger show
This commit is contained in:
parent
d3c286d8b7
commit
987659e3d4
@ -16,10 +16,10 @@ data Ledger = Ledger {
|
||||
} deriving (Eq)
|
||||
|
||||
instance Show Ledger where
|
||||
show l = printf "Ledger with %d normal, %d modifier, %d periodic entries"
|
||||
(length $ entries l)
|
||||
(length $ modifier_entries l)
|
||||
(length $ periodic_entries l)
|
||||
show l = printf "Ledger with %d entries"
|
||||
((length $ entries l) +
|
||||
(length $ modifier_entries l) +
|
||||
(length $ periodic_entries l))
|
||||
|
||||
ledgerTransactions :: Ledger -> [EntryTransaction]
|
||||
ledgerTransactions l = entryTransactionsFrom $ entries l
|
||||
|
Loading…
Reference in New Issue
Block a user