File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,15 @@ import Data.List (find)
52
52
-- 'onScreen' can also be used inside other layout combinators, although the
53
53
-- result may be confusing.
54
54
55
+ -- | Specify a layout to run on a given screen.
55
56
onScreen :: (LayoutClass l1 a , LayoutClass l2 a )
56
57
=> ScreenId -> l1 a -> l2 a -> OnScreen l1 l2 a
57
58
onScreen s = onScreens [s]
58
59
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.
59
64
onScreens :: (LayoutClass l1 a , LayoutClass l2 a )
60
65
=> [ScreenId ] -> l1 a -> l2 a -> OnScreen l1 l2 a
61
66
onScreens ss l1 l2 = OnScreen ss l1 l2 False -- @@@ is this right?
You can’t perform that action at this time.
0 commit comments