From 4a3ed9c4f7b7a521c74648b02be8846db4b04a3c Mon Sep 17 00:00:00 2001 From: amesgen Date: Fri, 13 Oct 2023 21:08:08 +0200 Subject: [PATCH] CI: use GHC 9.8.1 and 9.6.3 - 9.6.3 fixed the false positives with `-Wredundant-constraints` - `haskell/actions/setup` got deprecated in favor of `haskell-actions/setup` --- .github/workflows/ci.yaml | 4 ++-- megaparsec-tests/megaparsec-tests.cabal | 2 +- megaparsec.cabal | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fb8e647a..0d686d3c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,12 +19,12 @@ jobs: strategy: matrix: cabal: ["3.10"] - ghc: ["9.2.8", "9.4.7", "9.6.2"] + ghc: ["9.2.8", "9.4.7", "9.6.3", "9.8.1"] env: CONFIG: "--enable-tests --enable-benchmarks --flags=dev" steps: - uses: actions/checkout@v4 - - uses: haskell/actions/setup@v2 + - uses: haskell-actions/setup@v2 id: setup-haskell-cabal with: ghc-version: ${{ matrix.ghc }} diff --git a/megaparsec-tests/megaparsec-tests.cabal b/megaparsec-tests/megaparsec-tests.cabal index d3ddbfd5..6dd37eae 100644 --- a/megaparsec-tests/megaparsec-tests.cabal +++ b/megaparsec-tests/megaparsec-tests.cabal @@ -5,7 +5,7 @@ license: BSD-2-Clause license-file: LICENSE.md maintainer: Mark Karpov author: Megaparsec contributors -tested-with: ghc ==9.2.7 ghc ==9.4.4 ghc ==9.6.1 +tested-with: ghc ==9.2.8 ghc ==9.4.7 ghc ==9.6.3 ghc ==9.8.1 homepage: https://github.com/mrkkrp/megaparsec bug-reports: https://github.com/mrkkrp/megaparsec/issues synopsis: Test utilities and the test suite of Megaparsec diff --git a/megaparsec.cabal b/megaparsec.cabal index ccd14083..cfb81c73 100644 --- a/megaparsec.cabal +++ b/megaparsec.cabal @@ -9,7 +9,7 @@ author: Paolo Martini , Daan Leijen -tested-with: ghc ==9.2.8 ghc ==9.4.7 ghc ==9.6.2 +tested-with: ghc ==9.2.8 ghc ==9.4.7 ghc ==9.6.3 ghc ==9.8.1 homepage: https://github.com/mrkkrp/megaparsec bug-reports: https://github.com/mrkkrp/megaparsec/issues synopsis: Monadic parser combinators @@ -68,7 +68,9 @@ library transformers >=0.4 && <0.7 if flag(dev) - ghc-options: -Wall -Werror -Wpartial-fields -Wunused-packages + ghc-options: + -Wall -Werror -Wredundant-constraints -Wpartial-fields + -Wunused-packages else ghc-options: -O2 -Wall