extensible-effects-concurrent-0.2.0.2: Message passing concurrency as extensible-effect

Safe HaskellNone
LanguageHaskell2010

Control.Eff.Concurrent.Api

Description

Type safe server API processes

Synopsis

Documentation

data family Api (api :: Type) (reply :: Synchronicity) Source #

This data family defines an API implemented by a server. The first parameter is the API index and the second parameter (the * -> *)

newtype Server api Source #

Constructors

Server 

Instances

Eq (Server k api) Source # 

Methods

(==) :: Server k api -> Server k api -> Bool #

(/=) :: Server k api -> Server k api -> Bool #

Ord (Server k api) Source # 

Methods

compare :: Server k api -> Server k api -> Ordering #

(<) :: Server k api -> Server k api -> Bool #

(<=) :: Server k api -> Server k api -> Bool #

(>) :: Server k api -> Server k api -> Bool #

(>=) :: Server k api -> Server k api -> Bool #

max :: Server k api -> Server k api -> Server k api #

min :: Server k api -> Server k api -> Server k api #

Read (Server k api) Source # 

Methods

readsPrec :: Int -> ReadS (Server k api) #

readList :: ReadS [Server k api] #

readPrec :: ReadPrec (Server k api) #

readListPrec :: ReadPrec [Server k api] #

Typeable k api => Show (Server k api) Source # 

Methods

showsPrec :: Int -> Server k api -> ShowS #

show :: Server k api -> String #

showList :: [Server k api] -> ShowS #

fromServer :: forall api api. Iso (Server api) (Server api) ProcessId ProcessId Source #

proxyAsServer :: proxy api -> ProcessId -> Server api Source #

asServer :: forall api. ProcessId -> Server api Source #