summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/EPUB.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-08-04 14:12:13 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-08-04 14:12:13 -0700
commit2d6e0b1530e61fa2d6a22d8b61042734b20f0af5 (patch)
treea56598e630888689e05b34a4521473711d2a0060 /src/Text/Pandoc/Writers/EPUB.hs
parent5050cff37cbe2dffd7f7f09db11da40d7c1e48d0 (diff)
Remove CPP from default-extensions; add pragmas to modules as needed.
Diffstat (limited to 'src/Text/Pandoc/Writers/EPUB.hs')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index e625931fc..fb756f196 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE PatternGuards #-}
+{-# LANGUAGE PatternGuards, CPP #-}
{-
Copyright (C) 2010 John MacFarlane <jgm@berkeley.edu>
@@ -62,11 +62,7 @@ import Text.Pandoc.MIME (getMimeType)
import Prelude hiding (catch)
#endif
import Control.Exception (catch, SomeException)
-#if MIN_VERSION_blaze_html(0,5,0)
import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
-#else
-import Text.Blaze.Renderer.Utf8 (renderHtml)
-#endif
-- A Chapter includes a list of blocks and maybe a section
-- number offset. Note, some chapters are unnumbered. The section