| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ribosome.Api.Atomic
Synopsis
- data AtomicStatus
- atomic :: MonadDeepError e DecodeError m => NvimE e m => [RpcCall] -> m [Object]
- atomicAs :: MonadDeepError e DecodeError m => MsgpackDecode a => NvimE e m => [RpcCall] -> m [a]
Documentation
data AtomicStatus Source #
Instances
| Eq AtomicStatus Source # | |
Defined in Ribosome.Api.Atomic | |
| Show AtomicStatus Source # | |
Defined in Ribosome.Api.Atomic Methods showsPrec :: Int -> AtomicStatus -> ShowS # show :: AtomicStatus -> String # showList :: [AtomicStatus] -> ShowS # | |
| MsgpackDecode AtomicStatus Source # | |
Defined in Ribosome.Api.Atomic Methods fromMsgpack :: Object -> Either Err AtomicStatus Source # missingKey :: String -> Object -> Either Err AtomicStatus Source # | |
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.