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

Commit 4d4f766cb5cf56bd5210e5e8f57e84badb443b6e
Parent: 18592683c27243b1878b6cbb5863d9a482c5a327
Author: mcol <mcol@posteo.net>
Date: 2022-05-28 22:27:25 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2022-05-28 22:34:26 +0100

use RunRepo alias for Index

src/Index.hs Modified

@@ -12,9 +12,8 @@
 import System.Directory (removeFile)
 import System.FilePath (combine)
 import Text.Ginger.GVal (GVal, toGVal)
-import Text.Ginger.Html (Html, htmlSource)
-import Text.Ginger.Parse (SourcePos)
-import Text.Ginger.Run (Run, easyRenderM)
+import Text.Ginger.Html (htmlSource)
+import Text.Ginger.Run (easyRenderM)
 
 import Env (Env (..))
 import Templates (Template (..))
@@ -44,7 +43,7 @@
 packageIndex ::
     Env ->
     [Repo] ->
-    HashMap.HashMap Text (GVal (Run SourcePos IO Html))
+    HashMap.HashMap Text (GVal RunRepo)
 packageIndex env repos =
     HashMap.fromList
         [ ("host", toGVal $ envHost env)