Stability | experimental |
---|---|
Maintainer | woozletoff@gmail.com |
Safe Haskell | None |
- acall :: NvimObject result => FunctionName -> [Object] -> Neovim r st (STM (Either Object result))
- acall' :: NvimObject result => FunctionName -> [Object] -> Neovim r st (STM result)
- scall :: NvimObject result => FunctionName -> [Object] -> Neovim r st (Either Object result)
- scall' :: NvimObject result => FunctionName -> [Object] -> Neovim r st result
- atomically' :: MonadIO io => STM result -> io result
- wait :: Neovim r st (STM result) -> Neovim r st result
- wait' :: Neovim r st (STM result) -> Neovim r st ()
- waitErr :: Pretty e => String -> Neovim r st (STM (Either e result)) -> Neovim r st result
- waitErr' :: Pretty e => String -> Neovim r st (STM (Either e result)) -> Neovim r st ()
- respond :: NvimObject result => Request -> Either String result -> Neovim r st ()
Documentation
acall :: NvimObject result => FunctionName -> [Object] -> Neovim r st (STM (Either Object result))Source
acall' :: NvimObject result => FunctionName -> [Object] -> Neovim r st (STM result)Source
Helper function similar to acall
that throws a runtime exception if the
result is an error object.
:: NvimObject result | |
=> FunctionName | |
-> [Object] | Parameters in an |
-> Neovim r st (Either Object result) | result value of the call or the thrown exception |
Call a neovim function synchronously. This function blocks until the result is available.
scall' :: NvimObject result => FunctionName -> [Object] -> Neovim r st resultSource
Helper function similar to scall
that throws a runtime exception if the
result is an error object.
atomically' :: MonadIO io => STM result -> io resultSource
Lifted variant of atomically
.
wait :: Neovim r st (STM result) -> Neovim r st resultSource
Wait for the result of the STM action.
This action possibly blocks as it is an alias for
ioSTM -> ioSTM >>= liftIO . atomically
.