From be72e25616de053cabdc13785166d81b6d7a59f3 Mon Sep 17 00:00:00 2001 From: Christopher Sasarak Date: Fri, 16 Aug 2024 11:45:22 -0500 Subject: [PATCH] Turn off the new x-partial warnings. --- .github/workflows/build-all.yml | 2 +- cabal.project.ci.linux | 2 +- cabal.project.ci.macos | 2 +- cabal.project.ci.windows | 2 +- spectrometer.cabal | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 1464be8da..84f31a3ed 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -62,7 +62,7 @@ jobs: if: ${{ !contains(matrix.os, 'ubuntu') }} with: ghc-version: ${{ matrix.ghc }} - cabal-version: '3.10.2.1' + cabal-version: '3.10.3.0' # Set up Rust. # This action installs the 'minimal' profile. diff --git a/cabal.project.ci.linux b/cabal.project.ci.linux index 228f2b3ea..daf7ea495 100644 --- a/cabal.project.ci.linux +++ b/cabal.project.ci.linux @@ -9,4 +9,4 @@ packages: . import: ./cabal.project.common package spectrometer - ghc-options: -Werror + ghc-options: -Werror -Wwarn=x-partial diff --git a/cabal.project.ci.macos b/cabal.project.ci.macos index a82bc2872..c2a4cb0be 100644 --- a/cabal.project.ci.macos +++ b/cabal.project.ci.macos @@ -7,4 +7,4 @@ packages: . import: ./cabal.project.common package spectrometer - ghc-options: -Werror + ghc-options: -Werror -Wwarn=x-partial diff --git a/cabal.project.ci.windows b/cabal.project.ci.windows index 228f2b3ea..daf7ea495 100644 --- a/cabal.project.ci.windows +++ b/cabal.project.ci.windows @@ -9,4 +9,4 @@ packages: . import: ./cabal.project.common package spectrometer - ghc-options: -Werror + ghc-options: -Werror -Wwarn=x-partial diff --git a/spectrometer.cabal b/spectrometer.cabal index 2472e5a13..060ea38fa 100644 --- a/spectrometer.cabal +++ b/spectrometer.cabal @@ -73,6 +73,7 @@ common lang -Wall -Wincomplete-uni-patterns -Wcompat -Wincomplete-record-updates -Wmissing-home-modules -Wmissing-export-lists -Wredundant-constraints + -Wno-unrecognised-warning-flags -- TODO: Switch `semver` back to `versions` since https://github.com/fosskers/versions/issues/47 is fixed. This package maintainer seems much more responsive. Contrast https://github.com/brendanhay/semver/issues/12. -- codec-rpm is installed via cabal.project, so this number is an expected future version.