hledger/Ledger/Account.hs

21 lines
412 B
Haskell
Raw Normal View History

{-|
An 'Account' stores an account name, all transactions in the account
(excluding any subaccounts), and the total balance (including any
subaccounts).
-}
module Ledger.Account
where
import Ledger.Utils
2008-10-03 04:12:59 +04:00
import Ledger.Types
import Ledger.Amount
instance Show Account where
2008-10-12 09:07:19 +04:00
show (Account a ts b) = printf "Account %s with %d txns and %s balance" a (length ts) (show b)
2007-03-11 00:21:04 +03:00
nullacct = Account "" [] nullamt