[Xmonad] Issue 78 in xmonad: Extension state

codesite-noreply at google.com codesite-noreply at google.com
Wed Oct 31 10:00:04 EDT 2007


Issue 78: Extension state
http://code.google.com/p/xmonad/issues/detail?id=78

Comment #1 by daveroundy:
Note, we could also make other hooks use the same mechanism as Layouts. 
 The Layout
mechanism is similar in effect to a writer monad, but with a 
special-case for when
the state doesn't change, so we won't have to redraw the windows if a 
message doesn't
change the layout.  This approach seems to work well for Layouts, but I 
suppose isn't
needed for other hooks (as we don't care whether or not they've 
changed).  It also
make it pretty easy to write buggy layout combinators, since it's all 
too easy to
ignore that return value.

I wonder if perhaps a custom monad would be helpful for Layouts? And 
whether perhaps
we could use a similar approach for hooks? i.e. if we put hooks into a 
monad that
allows them to return a modified hook, wouldn't that be enough?



-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the Xmonad mailing list