
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.