forked from colonelpanic/dotfiles
		
	[XMonad] Remove ifL
This commit is contained in:
		@@ -87,9 +87,6 @@ if' :: Bool -> a -> a -> a
 | 
				
			|||||||
if' True  x _ = x
 | 
					if' True  x _ = x
 | 
				
			||||||
if' False _ y = y
 | 
					if' False _ y = y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifL :: a -> a -> Bool -> a
 | 
					 | 
				
			||||||
ifL a b c = if' c a b
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
toggleInMap' d k m =
 | 
					toggleInMap' d k m =
 | 
				
			||||||
  let existingValue = M.findWithDefault d k m
 | 
					  let existingValue = M.findWithDefault d k m
 | 
				
			||||||
  in M.insert k (not existingValue) m
 | 
					  in M.insert k (not existingValue) m
 | 
				
			||||||
@@ -241,7 +238,9 @@ myWindowBringerConfig =
 | 
				
			|||||||
                      }
 | 
					                      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
classIfMatches window entry =
 | 
					classIfMatches window entry =
 | 
				
			||||||
  ifL (Just $ snd entry) Nothing <$> runQuery (fst entry) window
 | 
					  if' <$> runQuery (fst entry) window <*>
 | 
				
			||||||
 | 
					      pure (Just $ snd entry) <*>
 | 
				
			||||||
 | 
					      pure Nothing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
getClassRaw w = fmap resClass $ withDisplay $ io . flip getClassHint w
 | 
					getClassRaw w = fmap resClass $ withDisplay $ io . flip getClassHint w
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user