From 207005cb083c40a50509c00bd3b3bf47e833d8e1 Mon Sep 17 00:00:00 2001 From: Chris Hodapp Date: Sat, 24 Dec 2016 20:12:11 -0500 Subject: [PATCH] Fixed obscure issue with Hakyll? See Hakyll FAQ https://jaspervdj.be/hakyll/tutorials/faq.html#hgetcontents-invalid-argument-or-commitbuffer-invalid-argument --- site.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site.hs b/site.hs index df0b063..daafff6 100644 --- a/site.hs +++ b/site.hs @@ -10,6 +10,7 @@ Portability : POSIX import Data.Monoid (mappend) import Hakyll import System.FilePath +import qualified GHC.IO.Encoding as E -- | Configuration for the RSS and ATOM feeds. feedConfiguration :: FeedConfiguration @@ -23,7 +24,9 @@ feedConfiguration = FeedConfiguration -- | Main entry point for generating all code via Hakyll main :: IO () -main = hakyll $ do +main = do + E.setLocaleEncoding E.utf8 + hakyll $ do -- Build up tags tags <- buildTags "posts/*" (fromCapture "tags/*.html") let postCtxTags = postCtxWithTags tags