Use strict readFile

This commit is contained in:
Chris Done 2014-05-27 11:55:40 +02:00
parent 486ab5fadc
commit 78bb56f345

View file

@ -20,7 +20,7 @@ getMarkdown :: FilePath -> IO Html
getMarkdown name =
do exists <- doesFileExist fp
if exists
then do text <- fmap L.toLazy (ST.readFile fp)
then do text <- fmap L.fromStrict (ST.readFile fp)
let !html = markdown def text
return html
else throw (MarkdownFileUnavailable name)