mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
25 lines
497 B
Haskell
25 lines
497 B
Haskell
{-|
|
|
|
|
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
|
|
import Ledger.Types
|
|
import Ledger.AccountName
|
|
import Ledger.Amount
|
|
import Ledger.Entry
|
|
import Ledger.RawTransaction
|
|
import Ledger.Transaction
|
|
|
|
|
|
instance Show Account where
|
|
show (Account a ts b) = printf "Account %s with %d transactions" a $ length ts
|
|
|
|
nullacct = Account "" [] nullamt
|
|
|