Ribosome.Host.Error
ignoreRpcError :: Member (Rpc !! RpcError) r => Sem (Rpc ': r) a -> Sem r () Source #
Run a Sem that uses Rpc and discard RpcErrors, interpreting Rpc to Rpc !! RpcError.
Sem
Rpc
RpcError
Rpc !! RpcError
!!
onRpcError :: Member (Rpc !! RpcError) r => (RpcError -> Sem r a) -> Sem (Rpc ': r) a -> Sem r a Source #
Run a Sem that uses Rpc and catch RpcErrors with the supplied function, interpreting Rpc to Rpc !! RpcError.
resumeBootError :: forall eff err r. Show err => Members [eff !! err, Error BootError] r => InterpreterFor eff r Source #
Resume an error by transforming it to Error BootError.
Error BootError
Error
BootError