extensible-effects-concurrent-0.1.3.0: 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 api) Source # 

Methods

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

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

Ord (Server api) Source # 

Methods

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

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

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

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

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

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

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

Read (Server api) Source # 
Typeable * api => Show (Server api) Source # 

Methods

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

show :: Server api -> String #

showList :: [Server 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 #