git.iko.soy/typeable/pandoc
on master help sign in
EPUB: condition Blaze Utf8 module name import on blaze-html version

blaze-html/blaze-markup-0.5 has Text.Blaze.Html.Renderer.Utf8 whereas blaze-html-0.4 has Text.Blaze.Renderer.Utf8. So this needs to be conditional on the version for pandoc still be with blaze-html-0.4.x

commit88d0ca8ea70b94747e46c05c060454e604cc6363 authorJens Petersen <juhpetersen@gmail.com> dateTue 22 Jan 2013, 10:27 (14 years ago) parentf468db9
1 file changed+4
src/Text/Pandoc/Writers/EPUB.hs+4
src/Text/Pandoc/Writers/EPUB.hs+4
@@ -56,7 +56,11 @@ import Network.URI ( unEscapeString )
5656import Text.Pandoc.MIME (getMimeType)
5757import Prelude hiding (catch)
5858import Control.Exception (catch, SomeException)
59+#ifdef MIN_VERSION_blaze-html(0,5,0)
5960import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
61+#else
62+import Text.Blaze.Renderer.Utf8 (renderHtml)
63+#endif
6064
6165-- | Produce an EPUB file from a Pandoc document.
6266writeEPUB :: WriterOptions -- ^ Writer options