fix a warning

This commit is contained in:
Simon Michael 2014-04-14 08:31:11 -07:00
parent a761ae5b86
commit 746f22458f

View File

@ -179,7 +179,7 @@ postingsDateSpan ps = DateSpan (Just $ postingDate $ head ps') (Just $ addDays 1
-- --date2-sensitive version, as above.
postingsDateSpan' :: WhichDate -> [Posting] -> DateSpan
postingsDateSpan' wd [] = DateSpan Nothing Nothing
postingsDateSpan' _ [] = DateSpan Nothing Nothing
postingsDateSpan' wd ps = DateSpan (Just $ postingdate $ head ps') (Just $ addDays 1 $ postingdate $ last ps')
where
ps' = sortBy (comparing postingdate) ps