aboutsummaryrefslogtreecommitdiff
path: root/src/F2Md/Config.hs
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-05-30 16:22:44 +1000
committerYuchen Pei <hi@ypei.me>2022-05-30 16:22:44 +1000
commitc96f8f6c820d43a55388f0307f3a6de9471ebb10 (patch)
treed28b4a77c03a4bb50b9ee0ea5d87074ace254e60 /src/F2Md/Config.hs
parent231b58693759be1174a3866e469f170387c22376 (diff)
linting
Diffstat (limited to 'src/F2Md/Config.hs')
-rw-r--r--src/F2Md/Config.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/F2Md/Config.hs b/src/F2Md/Config.hs
index 33380fa..c952d09 100644
--- a/src/F2Md/Config.hs
+++ b/src/F2Md/Config.hs
@@ -78,10 +78,10 @@ updateLastUpdated' path feed msgs =
HM.insert
(fuUrl feed)
(utcToZonedTime (zonedTimeZone $ mDate $ head msgs) . maximum $
- (zonedTimeToUTC . mDate) <$> msgs)
+ zonedTimeToUTC . mDate <$> msgs)
decoded
updateLastUpdated :: FilePath -> [FeedUserdata] -> [[Message]] -> IO ()
updateLastUpdated path feeds feedMsgs = do
- mapM_ (\(feed, msgs) -> updateLastUpdated' path feed msgs)
+ mapM_ (uncurry (updateLastUpdated' path))
(zip feeds feedMsgs)