Merge pull request #717 from juhp/patch-1
EPUB: condition Blaze Utf8 module name import on blaze-html version
This commit is contained in:
commit
420845a32c
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue