mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Replace liftM2 with liftA2
This commit is contained in:
@@ -32,6 +32,7 @@ module XMonad.Layout.TrackFloating
|
||||
UseTransientFor,
|
||||
) where
|
||||
|
||||
import Control.Applicative (liftA2)
|
||||
import Control.Monad
|
||||
import Data.Function
|
||||
import Data.List
|
||||
@@ -100,7 +101,7 @@ instance LayoutModifier UseTransientFor Window where
|
||||
|
||||
s0 <- get
|
||||
whenJust parent $ \p -> put s0{ windowset = W.focusWindow p (windowset s0) }
|
||||
result <- runLayout ws{ W.stack = fromMaybe ms (liftM2 focusWin ms parent) } r
|
||||
result <- runLayout ws{ W.stack = fromMaybe ms (liftA2 focusWin ms parent) } r
|
||||
|
||||
m' <- gets (W.peek . windowset)
|
||||
|
||||
|
Reference in New Issue
Block a user