show anumpostings in Account's show instance
This commit is contained in:
		
							parent
							
								
									d21085cc6e
								
							
						
					
					
						commit
						cf254b0da3
					
				| @ -25,9 +25,10 @@ import Hledger.Utils | |||||||
| 
 | 
 | ||||||
| -- deriving instance Show Account | -- deriving instance Show Account | ||||||
| instance Show Account where | instance Show Account where | ||||||
|     show Account{..} = printf "Account %s (boring:%s, ebalance:%s, ibalance:%s)" |     show Account{..} = printf "Account %s (boring:%s, postings:%d, ebalance:%s, ibalance:%s)" | ||||||
|                        aname   |                        aname | ||||||
|                        (if aboring then "y" else "n" :: String) |                        (if aboring then "y" else "n" :: String) | ||||||
|  |                        anumpostings | ||||||
|                        (showMixedAmount aebalance) |                        (showMixedAmount aebalance) | ||||||
|                        (showMixedAmount aibalance) |                        (showMixedAmount aibalance) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user