lib: comment
This commit is contained in:
parent
e077aeff5f
commit
efae8f8f2a
@ -765,8 +765,7 @@ commodityStylesFromAmounts amts = M.fromList commstyles
|
|||||||
commstyles = [(c, canonicalStyleFrom $ map astyle as) | (c,as) <- commamts]
|
commstyles = [(c, canonicalStyleFrom $ map astyle as) | (c,as) <- commamts]
|
||||||
|
|
||||||
-- | Given an ordered list of amount styles, choose a canonical style.
|
-- | Given an ordered list of amount styles, choose a canonical style.
|
||||||
-- That is: the style of the first, and the
|
-- That is: the style of the first, and the maximum precision of all.
|
||||||
-- maximum precision of all.
|
|
||||||
canonicalStyleFrom :: [AmountStyle] -> AmountStyle
|
canonicalStyleFrom :: [AmountStyle] -> AmountStyle
|
||||||
canonicalStyleFrom [] = amountstyle
|
canonicalStyleFrom [] = amountstyle
|
||||||
canonicalStyleFrom ss@(first:_) =
|
canonicalStyleFrom ss@(first:_) =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user