* UrgencyHooks made available as Window -> X () functions [patch]

My previous attempt at this patch was flawed, as gwern pointed out, in that it completely broke backward compatibility with all existing configurations using the module. This variation addresses that issue, preserving backward compatibility completely. 1 patch for repository http://code.haskell.org/XMonadContrib: Fri May 4 16:23:39 EST 2012 gopsychonauts@gmail.com * UrgencyHooks made available as Window -> X () functions Adds an UrgencyHook instance for the type Window -> X (), allowing any such functions to be used directly as UrgencyHooks. The Show and Read constraints were removed from the UrgencyHook class in order to permit this; these constraints were required only in a historical implementation of the module, which used a layout modifier. All existing configurations using UrgencyHooks should remain fully functional. New configs may make use of this modification by declaring their UrgencyHook as a simple Window -> X () function.

On Fri, May 4, 2012 at 2:39 AM, David McLean
My previous attempt at this patch was flawed, as gwern pointed out, in that it completely broke backward compatibility with all existing configurations using the module. This variation addresses that issue, preserving backward compatibility completely.
OK, I've compiled it and used it with my own xmonad.hs, and there were no compile errors and my urgency behavior still worked. Unless there are objections to this new patch, I will push it in 7 days. -- gwern http://www.gwern.net

This 1-patch bundle was just applied to http://code.haskell.org/XMonadContrib: 20120504062339 gopsychonauts@gmail.com * UrgencyHooks made available as Window -> X () functions Adds an UrgencyHook instance for the type Window -> X (), allowing any such functions to be used directly as UrgencyHooks. The Show and Read constraints were removed from the UrgencyHook class in order to permit this; these constraints were required only in a historical implementation of the module, which used a layout modifier. All existing configurations using UrgencyHooks should remain fully functional. New configs may make use of this modification by declaring their UrgencyHook as a simple Window -> X () function. -- This message was brought to you by DarcsWatch http://darcswatch.nomeata.de/repo_http:__code.haskell.org_XMonadContrib.html...
participants (3)
-
darcswatch@nomeata.de
-
David McLean
-
Gwern Branwen