more informative Show Account

This commit is contained in:
Simon Michael 2008-10-12 05:07:19 +00:00
parent d7db5660b9
commit 35376cfd9b

View File

@ -17,7 +17,7 @@ accounttests = TestList [
]
instance Show Account where
show (Account a ts b) = printf "Account %s with %d transactions" a $ length ts
show (Account a ts b) = printf "Account %s with %d txns and %s balance" a (length ts) (show b)
nullacct = Account "" [] nullamt