taffybar-3.1.1: A desktop bar similar to xmobar, but with more GUI

Copyright(c) Ivan A. Malison
LicenseBSD3-style (see LICENSE)
MaintainerIvan A. Malison
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

System.Taffybar.Context

Contents

Description

 
Synopsis

Documentation

logT :: MonadTrans t => Priority -> String -> t IO () Source #

type Taffy m v = MonadIO m => ReaderT Context m v Source #

type Listener = Event -> Taffy IO () Source #

data Value Source #

Constructors

Typeable t => Value t 

fromValue :: forall t. Typeable t => Value -> Maybe t Source #

asksContextVar :: (r -> MVar b) -> ReaderT r IO b Source #

runX11Context :: MonadIO m => Context -> a -> X11Property a -> m a Source #

getState :: forall t. Typeable t => Taffy IO (Maybe t) Source #

getStateDefault :: Typeable t => Taffy IO t -> Taffy IO t Source #

Like "putState", but avoids aquiring a lock if the value is already in the map.

putState :: forall t. Typeable t => Taffy IO t -> Taffy IO t Source #

Get a value of the type returned by the provided action from the the current taffybar state, unless the state does not exist, in which case the action will be called to populate the state map.

Orphan instances

IsX11Window Window Source # 
Instance details