File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 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)
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.
5556onScreen :: (LayoutClass l1 a , LayoutClass l2 a )
5657 => ScreenId -> l1 a -> l2 a -> OnScreen l1 l2 a
5758onScreen 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.
5964onScreens :: (LayoutClass l1 a , LayoutClass l2 a )
6065 => [ScreenId ] -> l1 a -> l2 a -> OnScreen l1 l2 a
6166onScreens ss l1 l2 = OnScreen ss l1 l2 False -- @@@ is this right?
You can’t perform that action at this time.
0 commit comments