🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit 9cc0f1060b1ef8ca202e538a6692d4172d0cae35
Parent: cff5149d25ed12e9ffaf892ab784b121eae6e6ff
Author: mcol <mcol@posteo.net>
Date: 2021-09-23 22:23:07 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-09-23 22:23:07 +0100

sequence . map --> mapM

src/Repositories.hs Modified

@@ -64,14 +64,14 @@
 
             -- Run the generator --
             let repo = package description commits tree
-            liftIO . sequence . map (generate repo) $ templates
+            liftIO . mapM (generate repo) $ templates
             return ()
   where
     name = takeFileName path
     outPath = outputDirectory </> name
 
 getCommits :: CommitOid LgRepo -> ReaderT LgRepo IO [Commit LgRepo]
-getCommits commitID = sequence . fmap loadCommit <=<
+getCommits commitID = mapM loadCommit <=<
     runConduit $ sourceObjects Nothing commitID False .| sinkList
 
 loadCommit :: ObjectOid LgRepo -> ReaderT LgRepo IO (Commit LgRepo)