summaryrefslogtreecommitdiff
path: root/lib/Hakyll/Web
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Hakyll/Web')
-rw-r--r--lib/Hakyll/Web/Feed.hs19
1 files changed, 12 insertions, 7 deletions
diff --git a/lib/Hakyll/Web/Feed.hs b/lib/Hakyll/Web/Feed.hs
index 916a2fa..2cafe02 100644
--- a/lib/Hakyll/Web/Feed.hs
+++ b/lib/Hakyll/Web/Feed.hs
@@ -28,29 +28,34 @@ module Hakyll.Web.Feed
--------------------------------------------------------------------------------
import Hakyll.Core.Compiler
import Hakyll.Core.Item
-import Hakyll.Core.Util.String (replaceAll)
+import Hakyll.Core.Util.String (replaceAll)
import Hakyll.Web.Template
import Hakyll.Web.Template.Context
import Hakyll.Web.Template.List
--------------------------------------------------------------------------------
-import Data.ByteString.Char8 (unpack)
-import Data.FileEmbed (embedFile)
+import Data.FileEmbed (embedFile)
+import qualified Data.Text as T
+import qualified Data.Text.Encoding as T
--------------------------------------------------------------------------------
rssTemplate :: String
-rssTemplate = unpack $(embedFile "data/templates/rss.xml")
+rssTemplate = T.unpack $
+ T.decodeUtf8 $(embedFile "data/templates/rss.xml")
rssItemTemplate :: String
-rssItemTemplate = unpack $(embedFile "data/templates/rss-item.xml")
+rssItemTemplate = T.unpack $
+ T.decodeUtf8 $(embedFile "data/templates/rss-item.xml")
atomTemplate :: String
-atomTemplate = unpack $(embedFile "data/templates/atom.xml")
+atomTemplate = T.unpack $
+ T.decodeUtf8 $(embedFile "data/templates/atom.xml")
atomItemTemplate :: String
-atomItemTemplate = unpack $(embedFile "data/templates/atom-item.xml")
+atomItemTemplate = T.unpack $
+ T.decodeUtf8 $(embedFile "data/templates/atom-item.xml")
--------------------------------------------------------------------------------