mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Conditionally error on unused imports
This turns off the warnings about unused imports _unless_ one is using the oldest supported version of GHC (right now that's 8.4.4 or older); then it turns them into errors! This prevents xmonad from emitting warnings about imports that have to be there due to backwards compatibility, but are obsolete in newer versions (think MFP), while at the same time preventing bitrot.
This commit is contained in:
parent
6715c75c50
commit
53903b086f
@ -63,7 +63,11 @@ library
|
|||||||
xmonad >= 0.15 && < 0.16,
|
xmonad >= 0.15 && < 0.16,
|
||||||
utf8-string
|
utf8-string
|
||||||
|
|
||||||
ghc-options: -fwarn-tabs -Wall -Wno-unused-do-bind
|
ghc-options: -fwarn-tabs -Wall -Wno-unused-do-bind -Wno-unused-imports
|
||||||
|
|
||||||
|
-- Keep this in sync with the oldest version in 'tested-with'
|
||||||
|
if impl(ghc <= 8.4.4)
|
||||||
|
ghc-options: -Werror=unused-imports
|
||||||
|
|
||||||
if flag(use_xft)
|
if flag(use_xft)
|
||||||
build-depends: X11-xft >= 0.2
|
build-depends: X11-xft >= 0.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user