mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
Replace liftM
and fmap
with <$>
This commit is contained in:
@@ -71,8 +71,8 @@ instance LayoutClass ResizableTall a where
|
||||
return . (\x->(x,Nothing)) .
|
||||
ap zip (tile frac (mfrac ++ repeat 1) r nmaster . length) . W.integrate
|
||||
handleMessage (ResizableTall nmaster delta frac mfrac) m =
|
||||
do ms <- (W.stack . W.workspace . W.current) `fmap` gets windowset
|
||||
fs <- (M.keys . W.floating) `fmap` gets windowset
|
||||
do ms <- (W.stack . W.workspace . W.current) <$> gets windowset
|
||||
fs <- (M.keys . W.floating) <$> gets windowset
|
||||
return $ ms >>= unfloat fs >>= handleMesg
|
||||
where handleMesg s = msum [fmap resize (fromMessage m)
|
||||
,fmap (\x -> mresize x s) (fromMessage m)
|
||||
|
Reference in New Issue
Block a user