Copyright | (c) Sebastian Witte |
---|---|
License | Apache-2.0 |
Maintainer | woozletoff@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- acall :: NvimObject result => FunctionName -> [Object] -> Neovim r st (STM (Either NeovimException result))
- acall' :: NvimObject result => FunctionName -> [Object] -> Neovim r st (STM result)
- scall :: NvimObject result => FunctionName -> [Object] -> Neovim r st (Either NeovimException result)
- scall' :: NvimObject result => FunctionName -> [Object] -> Neovim r st result
- scallThrow :: 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 NeovimException 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 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 r st 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 r st 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
.
wait :: Neovim r st (STM result) -> Neovim r st result Source #
Wait for the result of the STM action.
This action possibly blocks as it is an alias for
ioSTM -> ioSTM >>= liftIO . atomically
.
wait' :: Neovim r st (STM result) -> Neovim r st () Source #
Variant of wait
that discards the result.