diff options
| author | Josh Rahm <rahm@google.com> | 2022-04-09 15:09:55 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2022-04-09 15:09:55 -0600 |
| commit | b8428f25d0beeb9ee08fdb51d35d6c912d24f72a (patch) | |
| tree | 7e668f37fd957cf294cc1f7d44d80659c1b6eee0 /src/Internal/LayoutZipper.hs | |
| parent | f1f5993a10d57674c635f0cf3b2ffe47f77e9d5c (diff) | |
| download | rde-b8428f25d0beeb9ee08fdb51d35d6c912d24f72a.tar.gz rde-b8428f25d0beeb9ee08fdb51d35d6c912d24f72a.tar.bz2 rde-b8428f25d0beeb9ee08fdb51d35d6c912d24f72a.zip | |
Change mosaic to respond to multiple different kinds of messages
Diffstat (limited to 'src/Internal/LayoutZipper.hs')
| -rw-r--r-- | src/Internal/LayoutZipper.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Internal/LayoutZipper.hs b/src/Internal/LayoutZipper.hs index 136b913..e34a078 100644 --- a/src/Internal/LayoutZipper.hs +++ b/src/Internal/LayoutZipper.hs @@ -42,12 +42,15 @@ data NavigateLayout = } deriving (Typeable) +-- NavigateLayout instance to move to the next layout, circularly. toNextLayout :: NavigateLayout toNextLayout = SetLayout (+1) True +-- NavigateLayout instance to move to the previous layout, circularly. toPreviousLayout :: NavigateLayout toPreviousLayout = SetLayout (\x -> x - 1) True +-- NavigateLayotu instance to move to the first layout. toFirstLayout :: NavigateLayout toFirstLayout = SetLayout (const 0) True |