mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
Replace liftM
and fmap
with <$>
This commit is contained in:
@@ -54,7 +54,7 @@ import System.Posix.Env
|
||||
-- > { manageHook = manageRemote =<< io getHostName }
|
||||
|
||||
guessHostName :: IO String
|
||||
guessHostName = pickOneMaybe `liftM` (getEnv `mapM` vars)
|
||||
guessHostName = pickOneMaybe <$> (getEnv `mapM` vars)
|
||||
where
|
||||
pickOneMaybe = last . (mzero:) . take 1 . catMaybes
|
||||
vars = ["XAUTHLOCALHOSTNAME","HOST","HOSTNAME"]
|
||||
|
Reference in New Issue
Block a user