aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/LayoutZipper.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Internal/LayoutZipper.hs')
-rw-r--r--src/Internal/LayoutZipper.hs3
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