git.iko.soy/typeable/pandoc
on master help sign in
Remove blaze-html CPP conditional.
7d9f2d3Jesse Rosenthal
src/Text/Pandoc/Templates.hs+1−5
@@ -1,4 +1,4 @@
1−{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, CPP,
1+{-# LANGUAGE TypeSynonymInstances, FlexibleInstances,
2 OverloadedStrings, GeneralizedNewtypeDeriving #-}
2 OverloadedStrings, GeneralizedNewtypeDeriving #-}
3{-
3{-
4Copyright (C) 2009-2016 John MacFarlane <jgm@berkeley.edu>
4Copyright (C) 2009-2016 John MacFarlane <jgm@berkeley.edu>
@@ -108,12 +108,8 @@ import qualified Data.Map as M
108import qualified Data.HashMap.Strict as H
108import qualified Data.HashMap.Strict as H
109import Data.Foldable (toList)
109import Data.Foldable (toList)
110import qualified Control.Exception.Extensible as E (try, IOException)
110import qualified Control.Exception.Extensible as E (try, IOException)
111−#if MIN_VERSION_blaze_html(0,5,0)
112import Text.Blaze.Html (Html)
111import Text.Blaze.Html (Html)
113import Text.Blaze.Internal (preEscapedText)
112import Text.Blaze.Internal (preEscapedText)
114−#else
115−import Text.Blaze (preEscapedText, Html)
116−#endif
117import Data.ByteString.Lazy (ByteString, fromChunks)
113import Data.ByteString.Lazy (ByteString, fromChunks)
118import Text.Pandoc.Shared (readDataFileUTF8, ordNub)
114import Text.Pandoc.Shared (readDataFileUTF8, ordNub)
119import Data.Vector ((!?))
115import Data.Vector ((!?))