| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Eff.Concurrent.Api.Client
Description
Type safe server API processes
Documentation
cast :: forall r o. (HasCallStack, Member MessagePassing r, Typeable o, Typeable (Api o Asynchronous)) => Server o -> Api o Asynchronous -> Eff r () Source #
castChecked :: forall r o. (HasCallStack, Member MessagePassing r, Typeable o, Typeable (Api o Asynchronous)) => Server o -> Api o Asynchronous -> Eff r Bool Source #
call :: forall result api r. (Member MessagePassing r, Member Process r, Typeable api, Typeable (Api api (Synchronous result)), Typeable result, HasCallStack) => Server api -> Api api (Synchronous result) -> Eff r (Message result) Source #
castRegistered :: (Typeable o, ServesApi o r) => Api o Asynchronous -> Eff r () Source #
callRegistered :: (Typeable reply, ServesApi o r) => Api o (Synchronous reply) -> Eff r (Message reply) Source #
callRegisteredA :: (Alternative f, Typeable f, Typeable reply, ServesApi o r) => Api o (Synchronous (f reply)) -> Eff r (f reply) Source #