nvim-hs-2.3.2.0: Haskell plugin backend for neovim
Copyright(c) Sebastian Witte
LicenseApache-2.0
Maintainerwoozletoff@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Neovim.RPC.FunctionCall

Description

 
Synopsis

Documentation

acall :: NvimObject result => FunctionName -> [Object] -> Neovim env (STM (Either NeovimException result)) Source #

Helper function that concurrently puts a Message in the event queue and returns an STM action that returns the result.

scall Source #

Arguments

:: NvimObject result 
=> FunctionName 
-> [Object]

Parameters in an Object array

-> 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.

wait :: Neovim env (STM result) -> Neovim env 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 env (STM result) -> Neovim env () Source #

Variant of wait that discards the result.

respond :: NvimObject result => Request -> Either String result -> Neovim env () Source #

Send the result back to the neovim instance.