From 3f6b3dd99cd45fdd063580fa1deb03257c65e83e Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 9 Apr 2022 15:09:55 -0600 Subject: Change mosaic to respond to multiple different kinds of messages --- src/Internal/LayoutZipper.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Internal/LayoutZipper.hs') 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 -- cgit