diff options
| author | John MacFarlane <[email protected]> | 2015-01-19 10:29:39 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2015-04-15 10:37:17 -0700 |
| commit | 540023daee91a2b52357a490f6edd52c5974a364 (patch) | |
| tree | 3d08b25c5fde523d6b8c2efb6a719bfbdc0a6f3c | |
| parent | 17e209debf1a5dce80b78ecf14405f8db7487f7b (diff) | |
Use CPP to avoid unneeded import warning for blaze-markup >= 0.6.3.
See https://github.com/jgm/pandoc/pull/1888#issuecomment-70470409
| -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 |
