git.iko.soy/typeable/pandoc
on master help sign in
Fix compiler warning for older GHC versions.
ad2e19aJohn MacFarlane
src/Text/Pandoc/Error.hs+5−2
@@ -1,4 +1,4 @@
1−{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
1+{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, CPP #-}
2{-
2{-
3Copyright (C) 2006-2016 John MacFarlane <jgm@berkeley.edu>
3Copyright (C) 2006-2016 John MacFarlane <jgm@berkeley.edu>
4
4
@@ -39,7 +39,10 @@ import Data.Generics (Typeable)
39import GHC.Generics (Generic)
39import GHC.Generics (Generic)
40import Control.Exception (Exception)
40import Control.Exception (Exception)
41import Text.Pandoc.Shared (err)
41import Text.Pandoc.Shared (err)
42+#if MIN_VERSION_base(4,9,0)
42−import System.IO.Error (IOError)
43+import qualified System.IO.Error (IOError, ioError)
44+#else
45+#endif
43
46
44type Input = String
47type Input = String
45
48