xmonad-contrib-0.12: Third party extensions for xmonad

Portabilityunportable
Stabilityunstable
MaintainerDmitry Bogatov <KAction@gnu.org>
Safe HaskellNone

XMonad.Util.WindowState

Contents

Description

Functions for saving per-window data.

Synopsis

Usage

get :: MonadState s m => m s

put :: MonadState s m => s -> m ()

newtype StateQuery s a

Wrapper around Query with phanom type s, representing state, saved in window.

Constructors

StateQuery 

Fields

getQuery :: Query a
 

Instances

Monad (StateQuery s) 
Functor (StateQuery s) 
Applicative (StateQuery s) 
MonadIO (StateQuery s) 
(Show s, Read s, Typeable s) => MonadState (Maybe s) (StateQuery s)

Instance of MonadState for StateQuery.

runStateQuery :: StateQuery s a -> Window -> X a

Apply StateQuery to Window.

catchQuery :: Query a -> Query (Maybe a)

Lifted to Query version of catchX