aboutsummaryrefslogtreecommitdiffstats
path: root/W.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-03-07 08:49:10 +0100
committerDon Stewart <dons@cse.unsw.edu.au>2007-03-07 08:49:10 +0100
commitfc7626b6c8331e32ce4032dde2d693737f4a7ae3 (patch)
tree837f730c0891bce82ea98927d1a0b5168f100f79 /W.hs
parent91e917f6665da4562d8e01e816359d207f9d1771 (diff)
downloadxmonad-fc7626b6c8331e32ce4032dde2d693737f4a7ae3.tar.gz
xmonad-fc7626b6c8331e32ce4032dde2d693737f4a7ae3.tar.xz
xmonad-fc7626b6c8331e32ce4032dde2d693737f4a7ae3.zip
-Wall police. and strip the binary
darcs-hash:20070307074910-9c5c1-c82071afe812d1e1e6f4577c07c1d7b0b141c6c9.gz
Diffstat (limited to '')
-rw-r--r--W.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/W.hs b/W.hs
index b440c21..d46dc7a 100644
--- a/W.hs
+++ b/W.hs
@@ -91,6 +91,7 @@ forever a = a >> forever a
-- rotate (-1)
-- [4,5,6,7,8,1,2,3]
--
+rotate :: Int -> [a] -> [a]
rotate n xs = take l . drop offset . cycle $ xs
where
l = length xs