From 0679d22ae1eb3b3ae784660d611b77dd2b081751 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 11 Dec 2025 22:01:36 +0100 Subject: [PATCH] Drop support for ghc < 9.6. Build nightly and release candidates using ghc 9.12. --- .github/workflows/ci.yml | 16 ++-------------- .github/workflows/nightly.yml | 6 +++--- .github/workflows/release-candidate.yml | 4 ++-- CONTRIBUTING.md | 6 +++--- pandoc.cabal | 4 +--- 5 files changed, 11 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83bf86c9d..6fb8ff5d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,18 +47,6 @@ jobs: matrix: versions: # NOTE: Update `CONTRIBUTING.md` when changing the minimum version - - ghc: '8.10' - cabal: 'latest' - cabalopts: '--ghc-option=-Werror' - - ghc: '9.0' - cabal: 'latest' - cabalopts: '--ghc-option=-Werror' - - ghc: '9.2' - cabal: 'latest' - cabalopts: '--ghc-option=-Werror' - - ghc: '9.4' - cabal: 'latest' - cabalopts: '--ghc-option=-Werror' - ghc: '9.6' cabal: 'latest' cabalopts: '--ghc-option=-Werror' @@ -183,8 +171,8 @@ jobs: - name: Install ghc run: | - ghcup install ghc --set 9.4.4 - ghcup install cabal --set 3.10 + ghcup install ghc --set 9.10 + ghcup install cabal --set latest # declare/restore cached things diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0252ffa26..e61c2f779 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -17,7 +17,7 @@ jobs: - name: Install ghc run: | - ghcup install ghc --set 9.8 + ghcup install ghc --set 9.12 ghcup install cabal --set 3.14 - name: Install dependencies @@ -47,7 +47,7 @@ jobs: - uses: actions/checkout@v6 - name: Install ghc run: | - ghcup install ghc --set 9.8 + ghcup install ghc --set 9.12 ghcup install cabal --set 3.14 - name: Install dependencies run: | @@ -80,7 +80,7 @@ jobs: brew install ghcup - name: Install ghc run: | - ghcup install ghc --set 9.8 + ghcup install ghc --set 9.12 ghcup install cabal --set 3.14 echo "$HOME/.ghcup/bin" >> "${GITHUB_PATH}" - name: Install dependencies diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml index 79b01fd12..6ece2ac61 100644 --- a/.github/workflows/release-candidate.yml +++ b/.github/workflows/release-candidate.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v6 - name: Install ghc run: | - ghcup install ghc --set 9.8 + ghcup install ghc --set 9.12 ghcup install cabal --set 3.12 - name: Install dependencies @@ -88,7 +88,7 @@ jobs: - name: Install ghc and cabal run: | - ghcup install ghc --set 9.8 + ghcup install ghc --set 9.12 ghcup install cabal --set 3.12 echo "$HOME/.ghcup/bin" >> "${GITHUB_PATH}" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 07a0a4c36..31d337203 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -215,9 +215,9 @@ Please follow these guidelines: external C libraries should especially be avoided. 10. We aim for compatibility with at least the last three - released ghc versions, and sometimes more. Currently pandoc - can be compiled on ghc 8.10 and higher. All pull requests and - commits are tested automatically on GitHub Actions. + released ghc versions, and sometimes more. Currently we + support ghc versions 9.6 and higher. All pull requests + and commits are tested automatically on GitHub Actions. Tests ----- diff --git a/pandoc.cabal b/pandoc.cabal index 9916f3571..c0cdd745c 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -11,9 +11,7 @@ bug-reports: https://github.com/jgm/pandoc/issues stability: alpha homepage: https://pandoc.org category: Text -tested-with: GHC == 8.10.7, GHC == 9.0.2, - GHC == 9.2.5, GHC == 9.4.4, GHC == 9.6.3, - GHC == 9.8.2, GHC == 9.10.1 +tested-with: GHC == 9.6.7, GHC == 9.8.4, GHC == 9.10.3, GHC == 9.12.2 synopsis: Conversion between markup formats description: Pandoc is a Haskell library for converting from one markup format to another. The formats it can handle include