Skip to content

Commit 6e48d47

Browse files
committed
some cleanups suggested by @LSLears
1 parent d351ef4 commit 6e48d47

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

XMonad/Layout/PerScreen.hs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,10 @@ instance (LayoutClass l1 a, LayoutClass l2 a, Show a) => LayoutClass (OnScreen l
9494
description (OnScreen _ _ l2 False) = description l2
9595

9696
updateL1 :: OnScreen l1 l2 a -> Maybe (l1 a) -> OnScreen l1 l2 a
97-
updateL1 (OnScreen ss l1 l2 _) mlt =
98-
(\lt' -> OnScreen ss lt' l2 True) $ fromMaybe l1 mlt
97+
updateL1 (OnScreen ss l1 l2 _) mlt = OnScreen ss (fromMaybe l1 mlt) l2 True
9998

10099
updateL2 :: OnScreen l1 l2 a -> Maybe (l2 a) -> OnScreen l1 l2 a
101-
updateL2 (OnScreen ss l1 l2 _) mlt =
102-
(\lt' -> OnScreen ss l1 lt' False) $ fromMaybe l2 mlt
100+
updateL2 (OnScreen ss l1 l2 _) mlt = OnScreen ss l1 (fromMaybe l2 mlt) False
103101

104102
-- $deprecated
105103
-- Older versions of this module exported an 'ifWidth' layout modifier. This
@@ -113,4 +111,4 @@ ifWider :: (LayoutClass l1 a, LayoutClass l2 a)
113111
-> l2 a -- ^ layout to use otherwise
114112
-> BW.PerScreen l1 l2 a
115113
ifWider = BW.ifWider
116-
{-# DEPRECATED ifWider "Use XMonad.Layout.ByWidth.ifWider instead" #-}
114+
{-# DEPRECATED ifWider "Use XMonad.Layout.ByWidth.ifWider instead" #-}

0 commit comments

Comments
 (0)