git.iko.soy/typeable/pandoc
on master help sign in
EPUB: condition Blaze Utf8 module name import on blaze-html version
88d0ca8Jens Petersen
src/Text/Pandoc/Writers/EPUB.hs+4
@@ -56,7 +56,11 @@ import Network.URI ( unEscapeString )
56import Text.Pandoc.MIME (getMimeType)
56import Text.Pandoc.MIME (getMimeType)
57import Prelude hiding (catch)
57import Prelude hiding (catch)
58import Control.Exception (catch, SomeException)
58import Control.Exception (catch, SomeException)
59+#ifdef MIN_VERSION_blaze-html(0,5,0)
59import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
60import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
61+#else
62+import Text.Blaze.Renderer.Utf8 (renderHtml)
63+#endif
60
64
61-- | Produce an EPUB file from a Pandoc document.
65-- | Produce an EPUB file from a Pandoc document.
62writeEPUB :: WriterOptions -- ^ Writer options
66writeEPUB :: WriterOptions -- ^ Writer options