;lib: document AmountPrecision
This commit is contained in:
		
							parent
							
								
									37e49ada70
								
							
						
					
					
						commit
						d5ed8090fa
					
				| @ -199,6 +199,10 @@ instance Show AmountStyle where | |||||||
|     (show asdecimalpoint) |     (show asdecimalpoint) | ||||||
|     (show asdigitgroups) |     (show asdigitgroups) | ||||||
| 
 | 
 | ||||||
|  | -- | The "display precision" for a hledger amount, by which we mean | ||||||
|  | -- the number of decimal digits to display to the right of the decimal mark. | ||||||
|  | -- This can be from 0 to 255 digits (the maximum supported by the Decimal library), | ||||||
|  | -- or NaturalPrecision meaning "show all significant decimal digits". | ||||||
| data AmountPrecision = Precision !Word8 | NaturalPrecision deriving (Eq,Ord,Read,Show,Generic) | data AmountPrecision = Precision !Word8 | NaturalPrecision deriving (Eq,Ord,Read,Show,Generic) | ||||||
| 
 | 
 | ||||||
| -- | A style for displaying digit groups in the integer part of a | -- | A style for displaying digit groups in the integer part of a | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user