mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-04 22:21:54 -07:00
address another bitSize/finiteBitSize warning
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE CPP #-}
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonad.Hooks.DebugKeyEvents
|
-- Module : XMonad.Hooks.DebugKeyEvents
|
||||||
@@ -91,7 +92,11 @@ vmask numLockMask msk = intercalate " " $
|
|||||||
fst $
|
fst $
|
||||||
foldr vmask' ([],msk) masks
|
foldr vmask' ([],msk) masks
|
||||||
where
|
where
|
||||||
masks = map (\m -> (m,show m)) [0..toEnum (bitSize msk - 1)] ++
|
|
||||||
|
#if __GLASGOW_HASKELL__ < 707
|
||||||
|
finiteBitSize x = bitSize x
|
||||||
|
#endif
|
||||||
|
masks = map (\m -> (m,show m)) [0..toEnum (finiteBitSize msk - 1)] ++
|
||||||
[(numLockMask,"num" )
|
[(numLockMask,"num" )
|
||||||
,( lockMask,"lock" )
|
,( lockMask,"lock" )
|
||||||
,(controlMask,"ctrl" )
|
,(controlMask,"ctrl" )
|
||||||
|
Reference in New Issue
Block a user