make groupByDateSpan return data when first period has unbounded begin

This commit is contained in:
Jay Neubrand 2023-08-25 13:13:02 +02:00 committed by Simon Michael
parent c20ebae26d
commit 97943b206c

View File

@ -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