mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
Fix more GHC warnings: -Wdeprecations
With the bumped xmonad dependency, we can drop these, leaving just 4 warnings visible in ghcid. \o/ Related: https://github.com/xmonad/xmonad/pull/258
This commit is contained in:
parent
dac3acc5dd
commit
f71095885f
@ -46,6 +46,6 @@ import XMonad
|
||||
-- | Execute a named script hook
|
||||
execScriptHook :: String -> X ()
|
||||
execScriptHook hook = do
|
||||
xmonadDir <- getXMonadDir
|
||||
xmonadDir <- asks (cfgDir . directories)
|
||||
let script = xmonadDir ++ "/hooks "
|
||||
spawn (script ++ hook)
|
||||
|
@ -553,7 +553,7 @@ mkXPromptImplementation historyKey conf om = do
|
||||
XConf { display = d, theRoot = rw } <- ask
|
||||
s <- gets $ screenRect . W.screenDetail . W.current . windowset
|
||||
numlock <- gets X.numberlockMask
|
||||
cachedir <- getXMonadCacheDir
|
||||
cachedir <- asks (cacheDir . directories)
|
||||
hist <- io $ readHistory cachedir
|
||||
fs <- initXMF (font conf)
|
||||
st' <- io $
|
||||
@ -1729,7 +1729,7 @@ historyCompletion = historyCompletionP (const True)
|
||||
-- name satisfies the given predicate.
|
||||
historyCompletionP :: (String -> Bool) -> X ComplFunction
|
||||
historyCompletionP p = do
|
||||
cd <- getXMonadCacheDir
|
||||
cd <- asks (cacheDir . directories)
|
||||
pure $ \x ->
|
||||
let toComplList = deleteConsecutive . filter (isInfixOf x) . M.foldr (++) []
|
||||
in toComplList . M.filterWithKey (const . p) <$> readHistory cd
|
||||
|
Loading…
x
Reference in New Issue
Block a user