[xmonad] darcs patch: hide the implementation type in "EwmhDes... (and 1 more)

Joachim Breitner mail at joachim-breitner.de
Mon Sep 8 06:01:35 EDT 2008


Hi,

I’ve merged this patch, and re-submit it now. Isn’t it nicer to have the
exposed type less implementation-specific?

Greetings,
Joachim

Tue Jun 10 21:29:18 CEST 2008  Joachim Breitner <mail at joachim-breitner.de>
  * hide the implementation type in "EwmhDesktopsLayout"
  Instead of exporting the EwmhDesktopsHook type, which is used internally,
  export a type alias for (HandleEvent EwmhDesktopsHook), so users don't have
  to update their xmonad.hs if the implementation changes.
  
  It could also be wrapped in a newtype, instead of a "type", but that would
  require manual instances of the various classes, as ghc can automatically
  derive the LayoutClass instance.

Mon Sep  8 11:59:17 CEST 2008  Joachim Breitner <mail at joachim-breitner.de>
  * Merge "hide the implementation type in "EwmhDesktopsLayout""

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 28039 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/xmonad/attachments/20080908/247bc747/attachment-0001.bin


More information about the xmonad mailing list