taffybar-2.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

logIO :: Priority -> String -> IO () Source #

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 #

data BarConfig Source #

Constructors

BarConfig 

Fields

Instances
Eq BarConfig Source # 
Instance details

Defined in System.Taffybar.Context

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