simplexmq-0.5.0: SimpleXMQ message broker
Safe HaskellNone
LanguageHaskell2010

Simplex.Messaging.Util

Documentation

raceAny_ :: MonadUnliftIO m => [m a] -> m () Source #

(<$$>) :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b) infixl 4 Source #

(<$?>) :: MonadFail m => (a -> Either String b) -> m a -> m b infixl 4 Source #

liftIOEither :: (MonadIO m, MonadError e m) => IO (Either e a) -> m a Source #

liftError :: (MonadIO m, MonadError e' m) => (e -> e') -> ExceptT e IO a -> m a Source #

liftEitherError :: (MonadIO m, MonadError e' m) => (e -> e') -> IO (Either e a) -> m a Source #

tryError :: MonadError e m => m a -> m (Either e a) Source #

Orphan instances

(MonadUnliftIO m, Exception e) => MonadUnliftIO (ExceptT e m) Source # 
Instance details

Methods

withRunInIO :: ((forall a. ExceptT e m a -> IO a) -> IO b) -> ExceptT e m b #