ribosome-host-0.9.9.9: Neovim plugin host for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Host.Error

Synopsis

Documentation

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.

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.