Explorar o código

hakyll and haskell fumbling

john melesky %!s(int64=8) %!d(string=hai) anos
pai
achega
857bd32671
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      site.hs

+ 1 - 1
site.hs

@@ -67,7 +67,7 @@ main = hakyll $ do
   create ["new_index.html"] $ do
     route idRoute
     compile $ do
-      post <- fmap (head) recentFirst =<< loadAll "posts/*.md"
+      post <- fmap (head) . recentFirst =<< loadAll "posts/*.md"
       pandocCompiler
         >>= loadAndApplyTemplate "templates/post.html"    (postCtxWithTags tags)
         >>= loadAndApplyTemplate "templates/default.html" (postCtxWithTags tags)