taffybar-3.2.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.Util

Description

 
Synopsis

Documentation

liftReader :: Monad m => (m1 a -> m b) -> ReaderT r m1 a -> ReaderT r m b Source #

logPrintF :: (MonadIO m, Show t) => String -> Priority -> String -> t -> m () Source #

logPrintFDebug :: (MonadIO m, Show t) => String -> String -> t -> m () Source #

(??) :: Functor f => f (a -> b) -> a -> f b infixl 4 Source #

ifM :: Monad m => m Bool -> m a -> m a -> m a Source #

forkM :: Monad m => (c -> m a) -> (c -> m b) -> c -> m (a, b) Source #

maybeToEither :: b -> Maybe a -> Either b a Source #

runCommand :: MonadIO m => FilePath -> [String] -> m (Either String String) Source #

Run the provided command with the provided arguments.

foreverWithDelay :: RealFrac d => d -> IO a -> IO ThreadId Source #

Execute the provided IO action at the provided interval.

liftActionTaker :: Monad m => ((a -> m a) -> m b) -> (a -> ReaderT c m a) -> ReaderT c m b Source #

maybeTCombine :: Monad m => m (Maybe a) -> m (Maybe a) -> m (Maybe a) Source #

(<||>) :: Monad m => (t -> m (Maybe a)) -> (t -> m (Maybe a)) -> t -> m (Maybe a) infixl 3 Source #

(<|||>) :: Monad m => (t -> t1 -> m (Maybe a)) -> (t -> t1 -> m (Maybe a)) -> t -> t1 -> m (Maybe a) infixl 3 Source #

postGUIASync :: IO () -> IO () Source #

postGUISync :: IO () -> IO () Source #