[xmonad] CycleWS.toggleWS bug?

Alexey Feigin mysteriousentity at gmail.com
Wed Sep 16 06:32:29 EDT 2009


Hi,

I have found what seems to me a (theoretical) bug in
Xmonad.Actions.CycleWS.ToggleWS. Or if this is not a bug I would like to
find out why not :)

The code for the function is
------
-- | Toggle to the workspace displayed previously.
toggleWS :: X ()
toggleWS = windows $ view =<< tag . head . hidden
------

What if there are no hidden workspaces? Would the empty list exception be
caught somewhere?

This may be an edge case not worth worrying about but it still bothers me
somehow :)

Cheers,
Alexey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/xmonad/attachments/20090916/2103df18/attachment.html


More information about the xmonad mailing list