[xmonad] ManageHook and doF

Jan-David Quesel quesel at gmail.com
Wed Jan 26 12:32:57 CET 2011


There is some w missing...

On Wed, Jan 26, 2011 at 09:08:16PM +1000, Владимир Байраковский wrote:
> So, some imports needed:
> 
> import Control.Monad (when)
> import Data.List
> 
> But this error occured:
> 
> xmonad.hs:78:45:
>     Couldn't match expected type `[W.Workspace i l a]'
>            against inferred type `W.StackSet i1 l1 a1 s sd
>                                   -> [W.Workspace i1 l1 a1]'
>     In the second argument of `($)', namely `W.workspaces'
>     In the second argument of `($)', namely `map W.tag $ W.workspaces'
>     In the second argument of `notElem', namely
>         `(map show $ map W.tag $ W.workspaces)'
> 
> where line 78 is:
> when(x `notElem` (map show $ map W.tag $ W.workspaces)) $ addHiddenWorkspace x

It should read:

when(x `notElem` (map show $ map W.tag $ W.workspaces w)) $ addHiddenWorkspace x

Regards,
Jan


-- 
Jan-David Quesel
Carl von Ossietzky Universität Oldenburg
Department of Computing Science
Correct System Design
D-26111 Oldenburg, Germany

Phone: +49 (0)441 798-2376
Fax: +49 (0)441 798-2965
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20110126/f5860ac0/attachment.pgp>


More information about the xmonad mailing list