pianola-0.1.1: Remotely controlling Java Swing applications

Safe HaskellNone

Pianola.Protocol.IO

Synopsis

Documentation

data Endpoint Source

Constructors

Endpoint 

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.