more informative Show Account
This commit is contained in:
		
							parent
							
								
									d7db5660b9
								
							
						
					
					
						commit
						35376cfd9b
					
				| @ -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 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user