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

Safe HaskellNone
LanguageHaskell2010

Control.Eff.Concurrent.Api.GenServer

Description

A better, more safe implementation of the Erlang/OTP gen_server behaviour. **PLANNED TODO** @since 0.24.0

Synopsis

Documentation

class (Typeable (GenServerState a), NFData (GenServerState a)) => GenServer a eff where Source #

A type class for Api values that have an implementation which handles the Api.

Associated Types

type GenServerState a :: Type Source #

type family ApiReply (s :: Synchronicity) where ... Source #

data SomeMessage a Source #

Constructors

MkSomeMessage 
Instances
data Api (SomeMessage a) s Source # 
Instance details

Defined in Control.Eff.Concurrent.Api.GenServer

data Api (SomeMessage a) s where

runGenServer :: forall q e h a. (GenServer a e, SetMember Process (Process q) e, Member Interrupts e, LogsTo h e) => a -> Eff e (Server a) Source #