time-warp-0.1.1.2: Distributed systems execution emulation

Copyright(c) Serokell, 2016
LicenseGPL-3 (see the file LICENSE)
MaintainerSerokell <hi@serokell.io>
Stabilityexperimental
PortabilityPOSIX, GHC
Safe HaskellNone
LanguageHaskell2010

Control.TimeWarp.Rpc.MsgPackRpc

Description

This module contains implementation of MonadRpc for real mode (network, time- and thread-management capabilities provided by OS are used).

Synopsis

Documentation

data MsgPackRpc a Source #

Wrapper over TimedIO, which implements MonadRpc using msgpack-rpc.

Instances

Monad MsgPackRpc Source # 

Methods

(>>=) :: MsgPackRpc a -> (a -> MsgPackRpc b) -> MsgPackRpc b #

(>>) :: MsgPackRpc a -> MsgPackRpc b -> MsgPackRpc b #

return :: a -> MsgPackRpc a #

fail :: String -> MsgPackRpc a #

Functor MsgPackRpc Source # 

Methods

fmap :: (a -> b) -> MsgPackRpc a -> MsgPackRpc b #

(<$) :: a -> MsgPackRpc b -> MsgPackRpc a #

Applicative MsgPackRpc Source # 

Methods

pure :: a -> MsgPackRpc a #

(<*>) :: MsgPackRpc (a -> b) -> MsgPackRpc a -> MsgPackRpc b #

(*>) :: MsgPackRpc a -> MsgPackRpc b -> MsgPackRpc b #

(<*) :: MsgPackRpc a -> MsgPackRpc b -> MsgPackRpc a #

MonadThrow MsgPackRpc Source # 

Methods

throwM :: Exception e => e -> MsgPackRpc a #

MonadIO MsgPackRpc Source # 

Methods

liftIO :: IO a -> MsgPackRpc a #

MonadCatch MsgPackRpc Source # 

Methods

catch :: Exception e => MsgPackRpc a -> (e -> MsgPackRpc a) -> MsgPackRpc a #

MonadMask MsgPackRpc Source # 

Methods

mask :: ((forall a. MsgPackRpc a -> MsgPackRpc a) -> MsgPackRpc b) -> MsgPackRpc b #

uninterruptibleMask :: ((forall a. MsgPackRpc a -> MsgPackRpc a) -> MsgPackRpc b) -> MsgPackRpc b #

MonadTimed MsgPackRpc Source # 
MonadRpc MsgPackRpc Source # 
MonadBaseControl IO MsgPackRpc Source # 

Associated Types

type StM (MsgPackRpc :: * -> *) a :: * #

MonadBase IO MsgPackRpc Source # 

Methods

liftBase :: IO α -> MsgPackRpc α #

MethodType MsgPackRpc f => MethodType MsgPackRpc (MsgPackRpc f) Source # 
type ThreadId MsgPackRpc Source # 
type StM MsgPackRpc a Source # 
type StM MsgPackRpc a = a