[XMonad] Add if' and ifL to fix window bringer stuff
This commit is contained in:
parent
a75fa5f584
commit
640b016cf9
@ -80,6 +80,13 @@ tee = (fmap . fmap . fmap) (fmap fst) fork
|
||||
|
||||
findM :: (Monad m) => (a -> m (Maybe b)) -> [a] -> m (Maybe b)
|
||||
findM f = runMaybeT . msum . map (MaybeT . f)
|
||||
|
||||
if' :: Bool -> a -> a -> a
|
||||
if' True x _ = x
|
||||
if' False _ y = y
|
||||
|
||||
ifL :: a -> a -> Bool -> a
|
||||
ifL a b c = if' c a b
|
||||
|
||||
-- Selectors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user