status-notifier-item-0.3.0.1: A wrapper over the StatusNotifierItem/libappindicator dbus specification

Safe HaskellNone
LanguageHaskell2010

StatusNotifier.Util

Documentation

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

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

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

logErrorWithDefault :: Show a => (Priority -> String -> IO ()) -> b -> String -> Either a b -> IO b Source #

logEitherError :: Show a => (Priority -> String -> IO ()) -> String -> Either a b -> IO (Maybe b) Source #

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

(<<$>>) :: (a -> IO b) -> Maybe a -> IO (Maybe b) infixl 4 Source #

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

tee :: Monad m => (i -> m a) -> (i -> m b) -> i -> m a Source #

(>>=/) :: Monad m => m a -> (a -> m b) -> m a Source #

findM :: Monad m => (a -> m Bool) -> [a] -> m (Maybe a) Source #