Skip to content

Commit

Permalink
Limit -Werror=unused-imports to the oldest GHC we test against
Browse files Browse the repository at this point in the history
We do the same thing in xmonad and xmonad-contrib, because we use some
functions that are only exported in Prelude in more recent versions of
base.

Specifically, `import Data.List (foldl')` is no longer necessary with
base 4.20 (GHC 9.10), and fails the build if pedantic is on.
  • Loading branch information
liskin committed May 13, 2024
1 parent 21dfd24 commit 9eb2e80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions X11-xft.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ library
if flag(pedantic)
ghc-options: -Werror

-- Keep this in sync with the oldest version in 'tested-with'
if impl(ghc > 8.0.2)
-- don't treat unused-imports warning as errors, they may be necessary
-- for compatibility with older versions of base (or other deps)
ghc-options: -Wwarn=unused-imports

source-repository head
type: git
location: https://github.com/xmonad/X11-xft.git

0 comments on commit 9eb2e80

Please sign in to comment.