git.iko.soy/typeable/pandoc
on master help sign in
Fix compiler warning for older GHC versions.
commitad2e19a41f3452b1e41fded535a9a79ee74eb664 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 23 Feb 2017, 21:00 (10 years ago) parent61d3376
1 file changed+5−2
src/Text/Pandoc/Error.hs+5−2
src/Text/Pandoc/Error.hs+5−2
@@ -1,4 +1,4 @@
1−{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
1+{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, CPP #-}
22{-
33Copyright (C) 2006-2016 John MacFarlane <jgm@berkeley.edu>
44
@@ -39,7 +39,10 @@ import Data.Generics (Typeable)
3939import GHC.Generics (Generic)
4040import Control.Exception (Exception)
4141import Text.Pandoc.Shared (err)
42−import System.IO.Error (IOError)
42+#if MIN_VERSION_base(4,9,0)
43+import qualified System.IO.Error (IOError, ioError)
44+#else
45+#endif
4346
4447type Input = String
4548