Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
class Monad x => XContext x where Source #
request :: Request a => a -> Connection -> x () Source #
requestWithReply :: RequestWithReply a b => a -> Connection -> x (x (Either SomeError b)) Source #
waitXEvent :: Connection -> x SomeEvent Source #
pollXEvent :: Connection -> x (Maybe SomeEvent) Source #
MonadTrans X Source # | |
MonadError e m => MonadError e (X m) Source # | |
MonadReader r m => MonadReader r (X m) Source # | |
MonadState s m => MonadState s (X m) Source # | |
MonadWriter w m => MonadWriter w (X m) Source # | |
XContext x => MonadX x (X x) Source # | |
Monad m => Monad (X m) Source # | |
Functor m => Functor (X m) Source # | |
Monad m => Applicative (X m) Source # | |
MonadIO m => MonadIO (X m) Source # | |
class (XContext x, Monad m) => MonadX x m | m -> x where Source #
askX :: m Connection Source #
catchErrorX :: m a -> (SomeError -> m a) -> m a Source #
throwErrorX :: SomeError -> m a Source #
MonadX x m => MonadX x (MaybeT m) Source # | |
MonadX x m => MonadX x (ListT m) Source # | |
XContext x => MonadX x (X x) Source # | |
(Monoid w, MonadX x m) => MonadX x (WriterT w m) Source # | |
(Monoid w, MonadX x m) => MonadX x (WriterT w m) Source # | |
MonadX x m => MonadX x (StateT s m) Source # | |
MonadX x m => MonadX x (StateT s m) Source # | |
MonadX x m => MonadX x (IdentityT * m) Source # | |
MonadX x m => MonadX x (ExceptT e m) Source # | |
MonadX x m => MonadX x (ReaderT * r m) Source # | |
asksX :: MonadX x m => (Connection -> a) -> m a Source #
reqAsync :: (MonadX x m, RequestWithReply a b) => a -> m (m b) Source #
req :: (MonadX x m, RequestWithReply a b) => a -> m b Source #
newtype WithReply x a Source #
WithReply | |
|