Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Dmitry Bogatov <KAction@gnu.org> |
Safe Haskell | None |
XMonad.Util.WindowState
Contents
Description
Functions for saving per-window data.
- get :: MonadState s m => m s
- put :: MonadState s m => s -> m ()
- newtype StateQuery s a = StateQuery {
- getQuery :: Query a
- runStateQuery :: StateQuery s a -> Window -> X a
- catchQuery :: Query a -> Query (Maybe a)
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
|
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