Copyright | (c) Sebastian Witte |
---|---|
License | Apache-2.0 |
Maintainer | woozletoff@gmail.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- acall :: NvimObject result => FunctionName -> [Object] -> Neovim env (STM (Either NeovimException result))
- scall :: NvimObject result => FunctionName -> [Object] -> Neovim env (Either NeovimException result)
- scall' :: NvimObject result => FunctionName -> [Object] -> Neovim env result
- scallThrow :: NvimObject result => FunctionName -> [Object] -> Neovim env result
- atomically' :: MonadIO io => STM result -> io result
- wait :: Neovim env (STM result) -> Neovim env result
- wait' :: Neovim env (STM result) -> Neovim env ()
- respond :: NvimObject result => Request -> Either String result -> Neovim env ()
Documentation
acall :: NvimObject result => FunctionName -> [Object] -> Neovim env (STM (Either NeovimException result)) Source #
:: NvimObject result | |
=> FunctionName | |
-> [Object] | Parameters in an |
-> Neovim env (Either NeovimException 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 env result Source #
Helper function similar to scall
that throws a runtime exception if the
result is an error object.
scallThrow :: NvimObject result => FunctionName -> [Object] -> Neovim env result Source #
Similar to scall
, but throw a NeovimException
instead of returning it.
atomically' :: MonadIO io => STM result -> io result Source #
Lifted variant of atomically
.