summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll/Internal
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-26 16:49:12 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-26 16:49:12 +0100
commit509f9199979a4f745aec3a2063abe306fde93cf5 (patch)
tree7de9e5a0449781051e340ea2b7095bff4bd80493 /src/Text/Hakyll/Internal
parentc9e345808326c52de9e1a43b0364c0932115760d (diff)
downloadhakyll-509f9199979a4f745aec3a2063abe306fde93cf5.tar.gz
Fixed error when rendering literate Haskell.
Literate haskell was not listed in the pattern matching on FileType's, so it gave an error that the file type could not be rendered. This was quickly resolved by adding it to the list.
Diffstat (limited to 'src/Text/Hakyll/Internal')
-rw-r--r--src/Text/Hakyll/Internal/Page.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Text/Hakyll/Internal/Page.hs b/src/Text/Hakyll/Internal/Page.hs
index 8f1b9d6..0ba8983 100644
--- a/src/Text/Hakyll/Internal/Page.hs
+++ b/src/Text/Hakyll/Internal/Page.hs
@@ -42,10 +42,11 @@ getRenderFunction Text = id
getRenderFunction fileType = writeHtmlString writerOptions
. readFunction fileType (readOptions fileType)
where
- readFunction ReStructuredText = readRST
- readFunction LaTeX = readLaTeX
- readFunction Markdown = readMarkdown
- readFunction t = error $ "Cannot render file " ++ show t
+ readFunction ReStructuredText = readRST
+ readFunction LaTeX = readLaTeX
+ readFunction Markdown = readMarkdown
+ readFunction LiterateHaskellMarkdown = readMarkdown
+ readFunction t = error $ "Cannot render " ++ show t
readOptions LiterateHaskellMarkdown =
readerOptions { stateLiterateHaskell = True }