;dev: make doctest happy on ghc-8.10.7

This commit is contained in:
Thomas Miedema 2025-03-23 21:42:18 +01:00 committed by Simon Michael
parent c41588c5cd
commit 4d5ff3fe4e

View File

@ -116,11 +116,11 @@ import Hledger.Data.Valuation
-- With --verbose-tags, the equivalent visible tags will also be added.
-- These tag names are mentioned in docs and can be matched by user queries, so consider the impact before changing them.
generatedTransactionTagName, modifiedTransactionTagName, costPostingTagName, conversionPostingTagName, generatedPostingTagName :: TagName
generatedTransactionTagName = "_generated-transaction" -- ^ transactions generated by a periodic txn rule
modifiedTransactionTagName = "_modified-transaction" -- ^ transactions modified by an auto posting rule
generatedPostingTagName = "_generated-posting" -- ^ postings generated by hledger for one reason or another
costPostingTagName = "_cost-posting" -- ^ postings which have or could have a cost that's equivalent to nearby conversion postings
conversionPostingTagName = "_conversion-posting" -- ^ postings to an equity account of Conversion type which have an amount that's equivalent to a nearby costful or potentially costful posting
generatedTransactionTagName = "_generated-transaction" -- transactions generated by a periodic txn rule
modifiedTransactionTagName = "_modified-transaction" -- transactions modified by an auto posting rule
generatedPostingTagName = "_generated-posting" -- postings generated by hledger for one reason or another
costPostingTagName = "_cost-posting" -- postings which have or could have a cost that's equivalent to nearby conversion postings
conversionPostingTagName = "_conversion-posting" -- postings to an equity account of Conversion type which have an amount that's equivalent to a nearby costful or potentially costful posting
instance HasAmounts BalanceAssertion where
styleAmounts styles ba@BalanceAssertion{baamount} = ba{baamount=styleAmounts styles baamount}