CopyWindow.hs: type signature for copy

This commit is contained in:
Andrea Rossato
2007-10-13 09:01:22 +00:00
parent c3c2499052
commit af99f4b319

View File

@@ -55,6 +55,7 @@ import StackSet
-- %keybindlist , (f, m) <- [(view, 0), (shift, shiftMask), (copy, shiftMask .|. controlMask)]]
-- | copy. Copy a window to a new workspace.
copy :: WorkspaceId -> WindowSet -> WindowSet
copy n = copy'
where copy' s = if n `tagMember` s && n /= tag (workspace (current s))
then maybe s (go s) (peek s)