Copyright | (c) Ivan A. Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan A. Malison |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- liftReader :: Monad m => (m1 a -> m b) -> ReaderT r m1 a -> ReaderT r m b
- logPrintF :: (MonadIO m, Show t) => String -> Priority -> String -> t -> m ()
- logPrintFDebug :: (MonadIO m, Show t) => String -> String -> t -> m ()
- (??) :: Functor f => f (a -> b) -> a -> f b
- ifM :: Monad m => m Bool -> m a -> m a -> m a
- forkM :: Monad m => (c -> m a) -> (c -> m b) -> c -> m (a, b)
- maybeToEither :: b -> Maybe a -> Either b a
- truncateString :: Int -> String -> String
- runCommandFromPath :: MonadIO m => [String] -> m (Either String String)
- runCommand :: MonadIO m => FilePath -> [String] -> m (Either String String)
- foreverWithDelay :: RealFrac a1 => a1 -> IO a -> IO ThreadId
- liftActionTaker :: Monad m => ((a -> m a) -> m b) -> (a -> ReaderT c m a) -> ReaderT c m b
- maybeTCombine :: Monad m => m (Maybe a) -> m (Maybe a) -> m (Maybe a)
- (<||>) :: Monad m => (t -> m (Maybe a)) -> (t -> m (Maybe a)) -> t -> m (Maybe a)
- (<|||>) :: Monad m => (t -> t1 -> m (Maybe a)) -> (t -> t1 -> m (Maybe a)) -> t -> t1 -> m (Maybe a)
- catchGErrorsAsLeft :: IO a -> IO (Either GError a)
- safePixbufNewFromFile :: FilePath -> IO (Either GError Pixbuf)
- getPixbufFromFilePath :: FilePath -> IO (Maybe Pixbuf)
Documentation
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 a1 => a1 -> IO a -> IO ThreadId Source #
Execute the provided IO action at the provided interval.