diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-02-23 21:00:35 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-02-23 21:00:35 +0100 |
commit | ad2e19a41f3452b1e41fded535a9a79ee74eb664 (patch) | |
tree | 88a35f256ad7a512e2a36d54be8b479abd444e20 /src/Text/Pandoc | |
parent | 61d3376a4598b89f5ac1329ca215374ec358be3c (diff) | |
download | pandoc-ad2e19a41f3452b1e41fded535a9a79ee74eb664.tar.gz |
Fix compiler warning for older GHC versions.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Error.hs | 7 |
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 |