X.U.Grab: Hide mkGrabs from XMonad

With [1] merged, the XMonad module from core now exports mkGrabs and
setNumlockMask (now cacheNumlockMask).  However, since we want
xmonad-contrib 0.17.1 to compile against xmonad 0.17.0 still, hide the
function for now and continue to use the vendored copies we have in
X.U.Grab currently.  We have to ignore the dodgy-imports warning when
-fpedantic is on, but that seems like a small price to pay.

A breaking change for this is planned for 0.18.0.

[1]: https://github.com/xmonad/xmonad/pull/405
This commit is contained in:
Tony Zorman 2022-08-02 09:52:08 +02:00
parent 8268cdde26
commit 0934fe5cd7
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ module XMonad.Util.Grab
) where
-- core
import XMonad
import XMonad hiding (mkGrabs)
import Control.Monad ( when )
import Data.Bits ( setBit )

View File

@ -76,7 +76,7 @@ library
ghc-options: -Wall -Wno-unused-do-bind
if flag(pedantic)
ghc-options: -Werror -Wwarn=deprecations
ghc-options: -Werror -Wwarn=deprecations -Wwarn=dodgy-imports
-- Keep this in sync with the oldest version in 'tested-with'
if impl(ghc > 8.4.4)
@ -478,7 +478,7 @@ test-suite tests
default-language: Haskell2010
if flag(pedantic)
ghc-options: -Werror -Wwarn=deprecations
ghc-options: -Werror -Wwarn=deprecations -Wwarn=dodgy-imports
-- Keep this in sync with the oldest version in 'tested-with'
if impl(ghc > 8.4.4)