Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
FromConn ConnT Source # | |
MonadTrans (ConnT tp) Source # | |
Defined in Metro.Conn | |
Monad m => MonadReader (ConnEnv tp) (ConnT tp m) Source # | |
Monad m => Monad (ConnT tp m) Source # | |
Functor m => Functor (ConnT tp m) Source # | |
Applicative m => Applicative (ConnT tp m) Source # | |
MonadIO m => MonadIO (ConnT tp m) Source # | |
Defined in Metro.Conn | |
MonadUnliftIO m => MonadUnliftIO (ConnT tp m) Source # | |
Defined in Metro.Conn |
initConnEnv :: (MonadIO m, Transport tp) => TransportConfig tp -> m (ConnEnv tp) Source #
receive :: (MonadUnliftIO m, Transport tp, RecvPacket pkt) => ConnT tp m pkt Source #
send :: (MonadUnliftIO m, Transport tp, SendPacket pkt) => pkt -> ConnT tp m () Source #