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

David McLean gopsychonauts at gmail.com
Fri May 4 08:39:24 CEST 2012


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 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: urgency_hook_instance.dpatch
Type: application/octet-stream
Size: 14416 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120504/61a73b4d/attachment-0001.obj>


More information about the xmonad mailing list