aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout
diff options
context:
space:
mode:
authorquentin.moser <quentin.moser@unifr.ch>2010-01-17 12:56:01 +0100
committerquentin.moser <quentin.moser@unifr.ch>2010-01-17 12:56:01 +0100
commitafd0255738c17eef006c0ba7ddda771cff3c52c6 (patch)
tree6fb551da650c87e21d071631094c2fd6736c64fc /XMonad/Layout
parent5f455bb648f35843772a6ceca756d90bccce5fb0 (diff)
downloadXMonadContrib-afd0255738c17eef006c0ba7ddda771cff3c52c6.tar.gz
XMonadContrib-afd0255738c17eef006c0ba7ddda771cff3c52c6.tar.xz
XMonadContrib-afd0255738c17eef006c0ba7ddda771cff3c52c6.zip
Mention X.L.Groups.ModifySpec's rank-2 type in the doc
Ignore-this: 2061238abf835cb20579a4899655cec2 darcs-hash:20100117115601-5ccef-4c841e0535ffb6ba3bbac8ae5ae7720de4a32066.gz
Diffstat (limited to 'XMonad/Layout')
-rw-r--r--XMonad/Layout/Groups.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/XMonad/Layout/Groups.hs b/XMonad/Layout/Groups.hs
index 899ae62..4eaea40 100644
--- a/XMonad/Layout/Groups.hs
+++ b/XMonad/Layout/Groups.hs
@@ -352,6 +352,10 @@ refocus g = case getFocusZ $ gZipper $ W.focus $ groups g
--
-- * Duplicate layouts (only one will be kept, the rest will
-- get the base layout)
+--
+-- Note that 'ModifySpec' is a rank-2 type (indicating that 'ModifySpec's must be polymorphic
+-- in the layout type), so you'll need to add @{-# LANGUAGE Rank2Types #-}@ at the beginning
+-- of any module that defines functions taking 'ModifySpec's as arguments, or returning them.
type ModifySpec = forall l. WithID l Window
-> Zipper (Group l Window)
-> Zipper (Group l Window)