aboutsummaryrefslogtreecommitdiffstats
path: root/Spiral.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:43:00 +0200
committerAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:43:00 +0200
commit312808481d2ab51e45a17f3130ffd1a0d081bd33 (patch)
tree747506e7aa368d7198196df58675f8236b2d8a49 /Spiral.hs
parent01ced87755ccebde1ed936295d144ec075a2a081 (diff)
downloadXMonadContrib-312808481d2ab51e45a17f3130ffd1a0d081bd33.tar.gz
XMonadContrib-312808481d2ab51e45a17f3130ffd1a0d081bd33.tar.xz
XMonadContrib-312808481d2ab51e45a17f3130ffd1a0d081bd33.zip
Spiral.hs: info and documentation
darcs-hash:20070614144300-32816-023cedac8214f7875981ca977f46003a227bb1a4.gz
Diffstat (limited to 'Spiral.hs')
-rw-r--r--Spiral.hs37
1 files changed, 28 insertions, 9 deletions
diff --git a/Spiral.hs b/Spiral.hs
index 3be033d..ce115e5 100644
--- a/Spiral.hs
+++ b/Spiral.hs
@@ -1,4 +1,22 @@
-module XMonadContrib.Spiral (spiral) where
+-----------------------------------------------------------------------------
+-- |
+-- Module : XMonadContrib.SimpleDate
+-- Copyright : (c) Joe Thornber <joe.thornber@gmail.com>
+-- License : BSD3-style (see LICENSE)
+--
+-- Maintainer : Joe Thornber <joe.thornber@gmail.com>
+-- Stability : stable
+-- Portability : portable
+--
+-- Spiral adds a spiral tiling layout
+--
+-----------------------------------------------------------------------------
+
+module XMonadContrib.Spiral (
+ -- * Usage
+ -- $usage
+ spiral
+ ) where
import Graphics.X11.Xlib
import Operations
@@ -6,16 +24,17 @@ import Data.Ratio
import XMonad
import qualified StackSet as W
+-- $usage
+-- You can use this module with the following in your Config.hs file:
--
--- Spiral layout
---
--- eg,
--- defaultLayouts :: [Layout]
--- defaultLayouts = [ full,
--- tall defaultWindowsInMaster defaultDelta (1%2),
--- wide defaultWindowsInMaster defaultDelta (1%2),
--- spiral (1 % 1) ]
+-- > import XMonadContrib.Spiral
--
+-- > defaultLayouts :: [Layout]
+-- > defaultLayouts = [ full,
+-- > tall defaultWindowsInMaster defaultDelta (1%2),
+-- > wide defaultWindowsInMaster defaultDelta (1%2),
+-- > spiral (1 % 1) ]
+
fibs :: [Integer]
fibs = 1 : 1 : (zipWith (+) fibs (tail fibs))