aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-01-21 17:37:50 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2013-01-21 17:37:50 -0800
commit420845a32c83e9adbe0cfb19197417e5f96fb5a5 (patch)
treee6eb1d85e68607dbfe6ef3589bb1b1830cd1a3fa /src/Text/Pandoc
parentf468db92778cd693e9d4964f0d8a725f2e04f2fb (diff)
parent88d0ca8ea70b94747e46c05c060454e604cc6363 (diff)
downloadpandoc-420845a32c83e9adbe0cfb19197417e5f96fb5a5.tar.gz
Merge pull request #717 from juhp/patch-1
EPUB: condition Blaze Utf8 module name import on blaze-html version
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 4155cca05..802568664 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -56,7 +56,11 @@ import Network.URI ( unEscapeString )
import Text.Pandoc.MIME (getMimeType)
import Prelude hiding (catch)
import Control.Exception (catch, SomeException)
+#ifdef MIN_VERSION_blaze-html(0,5,0)
import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
+#else
+import Text.Blaze.Renderer.Utf8 (renderHtml)
+#endif
-- | Produce an EPUB file from a Pandoc document.
writeEPUB :: WriterOptions -- ^ Writer options