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

Commit c74594dbfaed0f2c213eae8ff0fc8d367e049797
Parent: 41912820af699608a5f7eb805bad1d45cc1bb753
Author: mcol <mcol@posteo.net>
Date: 2021-10-02 23:43:59 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-10-02 23:43:59 +0100

flip (</>) "description" -> (</> "description")

src/Templates.hs Modified

@@ -83,7 +83,7 @@
     -> Template
     -> IO (Either (RuntimeError SourcePos) (GVal (Run SourcePos IO Html)))
 generate output context template = do
-    let target = (</>) output . takeFileName . templatePath $ template
+    let target = (output </>) . takeFileName . templatePath $ template
     writeFile target ""  -- Clear contents of file if it exists
     easyRenderM (writeTo target) context . templateGinger $ template
 

src/Repositories.hs Modified

@@ -49,7 +49,7 @@
 use it too.
 -}
 getDescription :: FilePath -> IO Text
-getDescription = fmap (fromRight "") . tryIOError . fmap pack . readFile . flip (</>) "description"
+getDescription = fmap (fromRight "") . tryIOError . fmap pack . readFile . (</> "description")
 
 ----------------------------------------------------------------------------------------
 -- Private -----------------------------------------------------------------------------