git.iko.soy/typeable/pandoc
on master help sign in
Drop support for ghc < 8.
3ecc8d1John MacFarlane
CONTRIBUTING.md+1−1
@@ -144,7 +144,7 @@ Please follow these guidelines:
1449. It is better not to introduce new dependencies. Dependencies on
1449. It is better not to introduce new dependencies. Dependencies on
145 external C libraries should especially be avoided.
145 external C libraries should especially be avoided.
146
146
147−10. We aim for compatibility with ghc versions from 7.10.3 to the
147+10. We aim for compatibility with ghc versions from 8.0 to the
148 latest release. All pull requests and commits are tested
148 latest release. All pull requests and commits are tested
149 automatically on CircleCI.
149 automatically on CircleCI.
150
150
pandoc.cabal+1−2
@@ -11,8 +11,7 @@ bug-reports: https://github.com/jgm/pandoc/issues
11stability: alpha
11stability: alpha
12homepage: https://pandoc.org
12homepage: https://pandoc.org
13category: Text
13category: Text
14−tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4,
14+tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.3
15− GHC == 8.6.3
16synopsis: Conversion between markup formats
15synopsis: Conversion between markup formats
17description: Pandoc is a Haskell library for converting from one markup
16description: Pandoc is a Haskell library for converting from one markup
18 format to another, and a command-line tool that uses
17 format to another, and a command-line tool that uses
src/Text/Pandoc/Class.hs−8
@@ -9,10 +9,6 @@
9{-# LANGUAGE FlexibleContexts #-}
9{-# LANGUAGE FlexibleContexts #-}
10{-# LANGUAGE UndecidableInstances #-}
10{-# LANGUAGE UndecidableInstances #-}
11{-# LANGUAGE ScopedTypeVariables #-}
11{-# LANGUAGE ScopedTypeVariables #-}
12−#if MIN_VERSION_base(4,8,0)
13−#else
14−{-# LANGUAGE OverlappingInstances #-}
15−#endif
16{- |
12{- |
17 Module : Text.Pandoc.Class
13 Module : Text.Pandoc.Class
18 Copyright : Copyright (C) 2016-17 Jesse Rosenthal, John MacFarlane
14 Copyright : Copyright (C) 2016-17 Jesse Rosenthal, John MacFarlane
@@ -1041,11 +1037,7 @@ instance (MonadTrans t, PandocMonad m, Functor (t m),
1041 putCommonState = lift . putCommonState
1037 putCommonState = lift . putCommonState
1042 logOutput = lift . logOutput
1038 logOutput = lift . logOutput
1043
1039
1044−#if MIN_VERSION_base(4,8,0)
1045instance {-# OVERLAPS #-} PandocMonad m => PandocMonad (ParsecT s st m) where
1040instance {-# OVERLAPS #-} PandocMonad m => PandocMonad (ParsecT s st m) where
1046−#else
1047−instance PandocMonad m => PandocMonad (ParsecT s st m) where
1048−#endif
1049 lookupEnv = lift . lookupEnv
1041 lookupEnv = lift . lookupEnv
1050 getCurrentTime = lift getCurrentTime
1042 getCurrentTime = lift getCurrentTime
1051 getCurrentTimeZone = lift getCurrentTimeZone
1043 getCurrentTimeZone = lift getCurrentTimeZone
src/Text/Pandoc/PDF.hs−4
@@ -34,11 +34,7 @@ import System.FilePath
34import System.IO (stdout)
34import System.IO (stdout)
35import System.IO.Temp (withSystemTempDirectory, withTempDirectory,
35import System.IO.Temp (withSystemTempDirectory, withTempDirectory,
36 withTempFile)
36 withTempFile)
37−#if MIN_VERSION_base(4,8,3)
38import System.IO.Error (IOError, isDoesNotExistError)
37import System.IO.Error (IOError, isDoesNotExistError)
39−#else
40−import System.IO.Error (isDoesNotExistError)
41−#endif
42import Text.Pandoc.Definition
38import Text.Pandoc.Definition
43import Text.Pandoc.Error (PandocError (PandocPDFProgramNotFoundError))
39import Text.Pandoc.Error (PandocError (PandocPDFProgramNotFoundError))
44import Text.Pandoc.MIME (getMimeType)
40import Text.Pandoc.MIME (getMimeType)
src/Text/Pandoc/Readers/Docx.hs−3
@@ -79,9 +79,6 @@ import Text.Pandoc.Readers.Docx.Parse
79import Text.Pandoc.Shared
79import Text.Pandoc.Shared
80import Text.Pandoc.Walk
80import Text.Pandoc.Walk
81import Text.TeXMath (writeTeX)
81import Text.TeXMath (writeTeX)
82−#if !(MIN_VERSION_base(4,8,0))
83−import Data.Traversable (traverse)
84−#endif
85import Control.Monad.Except (throwError)
82import Control.Monad.Except (throwError)
86import Text.Pandoc.Class (PandocMonad)
83import Text.Pandoc.Class (PandocMonad)
87import qualified Text.Pandoc.Class as P
84import qualified Text.Pandoc.Class as P