Skip to content

Commit

Permalink
make groupByDateSpan return data when first period has unbounded begin
Browse files Browse the repository at this point in the history
  • Loading branch information
jneubrand authored and simonmichael committed Aug 25, 2023
1 parent c20ebae commit 97943b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hledger-lib/Hledger/Data/Dates.hs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ groupByDateSpan showempty date colspans =
groupByCols (c:cs) ps = (c, map snd matches) : groupByCols cs later
where (matches, later) = span ((spanEnd c >) . Just . fst) ps

beforeStart = maybe (const True) (>) $ spanStart =<< headMay colspans
beforeStart = maybe (const False) (>) $ spanStart =<< headMay colspans

-- | Calculate the intersection of a number of datespans.
spansIntersect [] = nulldatespan
Expand Down

0 comments on commit 97943b2

Please sign in to comment.