RotView.hs: info and documentation

This commit is contained in:
Andrea Rossato 2007-06-14 14:42:25 +00:00
parent 13683bc92f
commit 399b955eb6

View File

@ -1,12 +1,22 @@
module XMonadContrib.RotView ( rotView ) where -----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.RotView
-- Copyright : (c) David Roundy <droundy@darcs.net>
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : David Roundy <droundy@darcs.net>
-- Stability : unstable
-- Portability : unportable
--
-- Provides bindings to cycle through non-empty workspaces. -- Provides bindings to cycle through non-empty workspaces.
--
-----------------------------------------------------------------------------
-- To use: module XMonadContrib.RotView (
-- import XMonadContrib.RotView -- * Usage
-- $usage
-- , ((modMask .|. shiftMask, xK_Right), rotView True) rotView
-- , ((modMask .|. shiftMask, xK_Left), rotView False) ) where
import Control.Monad.State ( gets ) import Control.Monad.State ( gets )
import Data.List ( sortBy ) import Data.List ( sortBy )
@ -16,6 +26,14 @@ import XMonad
import StackSet hiding (filter) import StackSet hiding (filter)
import qualified Operations as O import qualified Operations as O
-- $usage
-- You can use this module with the following in your Config.hs file:
--
-- > import XMonadContrib.RotView
--
-- > , ((modMask .|. shiftMask, xK_Right), rotView True)
-- > , ((modMask .|. shiftMask, xK_Left), rotView False)
rotView :: Bool -> X () rotView :: Bool -> X ()
rotView b = do rotView b = do
ws <- gets windowset ws <- gets windowset