aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-23 21:00:35 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-23 21:00:35 +0100
commitad2e19a41f3452b1e41fded535a9a79ee74eb664 (patch)
tree88a35f256ad7a512e2a36d54be8b479abd444e20 /src/Text
parent61d3376a4598b89f5ac1329ca215374ec358be3c (diff)
downloadpandoc-ad2e19a41f3452b1e41fded535a9a79ee74eb664.tar.gz
Fix compiler warning for older GHC versions.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Error.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs
index 552fc9c4b..5866c2127 100644
--- a/src/Text/Pandoc/Error.hs
+++ b/src/Text/Pandoc/Error.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
+{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, CPP #-}
{-
Copyright (C) 2006-2016 John MacFarlane <jgm@berkeley.edu>
@@ -39,7 +39,10 @@ import Data.Generics (Typeable)
import GHC.Generics (Generic)
import Control.Exception (Exception)
import Text.Pandoc.Shared (err)
-import System.IO.Error (IOError)
+#if MIN_VERSION_base(4,9,0)
+import qualified System.IO.Error (IOError, ioError)
+#else
+#endif
type Input = String