ribosome-0.4.0.0: api extensions for nvim-hs
Safe HaskellNone
LanguageHaskell2010

Ribosome.Api.Atomic

Synopsis

Documentation

atomic :: MonadDeepError e DecodeError m => NvimE e m => [RpcCall] -> m [Object] Source #

Bundle a list of RpcCalls into a single call to nvim_call_atomic. The result is checked for an error message, and if it is present, the call will fail.

atomicAs :: MonadDeepError e DecodeError m => MsgpackDecode a => NvimE e m => [RpcCall] -> m [a] Source #

Bundle calls into one and decode all results to the same type.