aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-01-28 16:50:47 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-28 16:50:47 -0800
commitc9454a4176878803870c3f658ba01b5727b11776 (patch)
tree2c9b1c47a83aae2a2480a036adf81b38745c5f42 /src/Text/Pandoc
parent2932ac8574e79d5d5b3b65ed81b0125d4d146f12 (diff)
downloadpandoc-c9454a4176878803870c3f658ba01b5727b11776.tar.gz
Add cpp to avoid warning.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 98316eee6..75b338c09 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -45,7 +45,12 @@ import Control.Monad.Trans
import Data.Aeson.Encode.Pretty (encodePretty', Config(..), keyOrder,
defConfig, Indent(..), NumberFormat(..))
import Data.Char (toLower, toUpper)
-import Data.List (intercalate, sort, isPrefixOf)
+import Data.List (intercalate, sort)
+#ifdef _WINDOWS
+#if MIN_VERSION_base(4,12,0)
+import Data.List (isPrefixOf)
+#endif
+#endif
import Data.Maybe (fromMaybe)
import Skylighting (Style, Syntax (..), defaultSyntaxMap, parseTheme,
pygments)