Skip to content

Commit 8ea47cb

Browse files
committed
haddock
1 parent 6e48d47 commit 8ea47cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

XMonad/Layout/PerScreen.hs

+5
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ import Data.List (find)
5252
-- 'onScreen' can also be used inside other layout combinators, although the
5353
-- result may be confusing.
5454

55+
-- | Specify a layout to run on a given screen.
5556
onScreen :: (LayoutClass l1 a, LayoutClass l2 a)
5657
=> ScreenId -> l1 a -> l2 a -> OnScreen l1 l2 a
5758
onScreen s = onScreens [s]
5859

60+
-- | Specify a layout to run on a list of screens.
61+
-- Note that this works by 'ScreenId'. It has a 'Num' instance, so literal
62+
-- screen numbers will work as expected, but if you use a binding you need
63+
-- to use the 'S' constructor.
5964
onScreens :: (LayoutClass l1 a, LayoutClass l2 a)
6065
=> [ScreenId] -> l1 a -> l2 a -> OnScreen l1 l2 a
6166
onScreens ss l1 l2 = OnScreen ss l1 l2 False -- @@@ is this right?

0 commit comments

Comments
 (0)