2007-02-16 12:00:17 +03:00
|
|
|
module Account
|
2007-02-15 05:08:18 +03:00
|
|
|
where
|
|
|
|
import Utils
|
2007-07-02 18:54:36 +04:00
|
|
|
import Types
|
2007-02-18 21:12:02 +03:00
|
|
|
import AccountName
|
2007-03-12 10:58:11 +03:00
|
|
|
import Amount
|
2007-07-04 13:51:37 +04:00
|
|
|
import LedgerEntry
|
|
|
|
import LedgerTransaction
|
2007-02-18 21:12:02 +03:00
|
|
|
import Transaction
|
2007-02-15 05:08:18 +03:00
|
|
|
|
|
|
|
|
2007-03-11 01:29:09 +03:00
|
|
|
instance Show Account where
|
|
|
|
show (Account a ts b) = printf "Account %s with %d transactions" a $ length ts
|
|
|
|
|
2007-03-11 00:21:04 +03:00
|
|
|
nullacct = Account "" [] nullamt
|
2007-02-15 05:08:18 +03:00
|
|
|
|