slightly less verbose Show Ledger
This commit is contained in:
		
							parent
							
								
									01cd388c24
								
							
						
					
					
						commit
						a9f021eebe
					
				| @ -25,13 +25,12 @@ ledgertests = TestList [ | ||||
|               ] | ||||
| 
 | ||||
| instance Show Ledger where | ||||
|     show l = printf "Ledger with %d entries, %d accounts: %s" | ||||
|     show l = printf "Ledger with %d entries, %d accounts\n%s" | ||||
|              ((length $ entries $ rawledger l) + | ||||
|               (length $ modifier_entries $ rawledger l) + | ||||
|               (length $ periodic_entries $ rawledger l)) | ||||
|              (length $ accountnames l) | ||||
|              (show $ accountnames l) | ||||
|              ++ "\n" ++ (showtree $ accountnametree l) | ||||
|              (showtree $ accountnametree l) | ||||
| 
 | ||||
| -- | Convert a raw ledger to a more efficient cached type, described above.   | ||||
| cacheLedger :: RawLedger -> Ledger | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user