From 3b416a76ef0d332baf0ffb9af94c6deab6f37495 Mon Sep 17 00:00:00 2001 From: Jonathan Dowland Date: Sat, 2 Mar 2024 20:56:35 +0000 Subject: [PATCH] ;cln:import: clarify haddock for getEffectiveAssignment Signed-off-by: Jonathan Dowland --- hledger-lib/Hledger/Read/RulesReader.hs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hledger-lib/Hledger/Read/RulesReader.hs b/hledger-lib/Hledger/Read/RulesReader.hs index d75962e50..4e88d5444 100644 --- a/hledger-lib/Hledger/Read/RulesReader.hs +++ b/hledger-lib/Hledger/Read/RulesReader.hs @@ -731,10 +731,9 @@ maybeNegate :: MatcherPrefix -> Bool -> Bool maybeNegate Not origbool = not origbool maybeNegate _ origbool = origbool --- | Given the conversion rules, a CSV record and a hledger field name, collect --- the value templates (and their parent Conditional Blocks where applicable) --- assigned to this field, if any, by top-level field assignments and --- conditional blocks matching this record. +-- | Given the conversion rules, a CSV record and a hledger field name, find +-- either the last applicable `ConditionalBlock`, or the final value template +-- assigned to this field by a top-level field assignment, if any exist. -- -- Note conditional blocks' patterns are matched against an approximation of the -- CSV record: all the field values, without enclosing quotes, comma-separated.