diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-19 10:29:39 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-19 10:29:57 -0800 |
commit | 8a7db5cc9d382f1afab3a4e9ed0ac5a9d3f7c5a7 (patch) | |
tree | 1ea0a03e7fd62e8a16d0b7885eb4f27450e42689 /src/Text/Pandoc | |
parent | 030d3b597de696a074ff143958f359de268d2078 (diff) | |
download | pandoc-8a7db5cc9d382f1afab3a4e9ed0ac5a9d3f7c5a7.tar.gz |
Use CPP to avoid unneeded import warning for blaze-markup >= 0.6.3.
See https://github.com/jgm/pandoc/pull/1888#issuecomment-70470409
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 46974930e..b3a2d264d 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -49,7 +49,10 @@ import Data.String ( fromString ) import Data.Maybe ( catMaybes, fromMaybe ) import Control.Monad.State import Text.Blaze.Html hiding(contents) +#if MIN_VERSION_blaze_markup(0,6,3) +#else import Text.Blaze.Internal(preEscapedString) +#endif #if MIN_VERSION_blaze_html(0,5,1) import qualified Text.Blaze.XHtml5 as H5 #else |