Safe Haskell | None |
---|
- data RunInIOError
- data Endpoint = Endpoint {}
- runProtocol :: (MonadIO m, MonadReader r m) => (r -> Endpoint) -> Protocol a -> EitherT ServerError (EitherT RunInIOError m) a
Documentation
runProtocol :: (MonadIO m, MonadReader r m) => (r -> Endpoint) -> Protocol a -> EitherT ServerError (EitherT RunInIOError m) aSource
Runs a sequence of RPC calls in a base monad which has access to an
Endpoint
value which identifies the server. An accessor function must be
provided to extract the Endpoint from the base monad's environment, which
may be more general.