diff options
author | Andrea Rossato <andrea.rossato@unibz.it> | 2007-06-14 16:41:35 +0200 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@unibz.it> | 2007-06-14 16:41:35 +0200 |
commit | 211f2a69c9af5f53c810da55902044f8f05e60b0 (patch) | |
tree | 71acc12b4784e07071cdc0c1e9bca4d82f14d324 | |
parent | d40c804ad35d72ce1b94048d967bd9066e5c029d (diff) | |
download | XMonadContrib-211f2a69c9af5f53c810da55902044f8f05e60b0.tar.gz XMonadContrib-211f2a69c9af5f53c810da55902044f8f05e60b0.tar.xz XMonadContrib-211f2a69c9af5f53c810da55902044f8f05e60b0.zip |
NamedWindows.hs: info and documentation
darcs-hash:20070614144135-32816-802403aac2a2059780a0c9a18bee1240cee47dee.gz
Diffstat (limited to '')
-rw-r--r-- | NamedWindows.hs | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/NamedWindows.hs b/NamedWindows.hs index c2aa910..d807a0c 100644 --- a/NamedWindows.hs +++ b/NamedWindows.hs @@ -1,7 +1,26 @@ -module XMonadContrib.NamedWindows ( NamedWindow, getName, withNamedWindow, unName ) where - +----------------------------------------------------------------------------- +-- | +-- Module : XMonadContrib.NamedWindows +-- Copyright : (c) David Roundy <droundy@darcs.net> +-- License : BSD3-style (see LICENSE) +-- +-- Maintainer : David Roundy <droundy@darcs.net> +-- Stability : unstable +-- Portability : unportable +-- -- This module allows you to associate the X titles of windows with --- them. See XMonadContrib.Mosaic for an example of its use. +-- them. +-- +----------------------------------------------------------------------------- + +module XMonadContrib.NamedWindows ( + -- * Usage + -- $usage + NamedWindow, + getName, + withNamedWindow, + unName + ) where import Control.Monad.Reader ( asks ) import Control.Monad.State ( gets ) @@ -13,6 +32,10 @@ import Graphics.X11.Xlib.Extras ( fetchName ) import XMonad +-- $usage +-- See "XMonadContrib.Mosaic" for an example of its use. + + data NamedWindow = NW !String !Window instance Eq NamedWindow where (NW s _) == (NW s' _) = s == s' |