nvim-hs-0.0.2: Haskell plugin backend for neovim

Copyright(c) Sebastian Witte
LicenseApache-2.0
Maintainerwoozletoff@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Neovim.Plugin.IPC.Internal

Description

 

Synopsis

Documentation

data RPCMessage Source

Haskell representation of supported Remote Procedure Call messages.

Constructors

FunctionCall Text [Object] (TMVar (Either Object Object)) UTCTime

Method name, parameters, callback, timestamp

Response !Int64 Object Object

Response sent to indicate the result of a function call.

  • identfier of the message as Word32
  • Error value
  • Result value
NotificationCall Text [Object]

Method name and parameters.

data Request Source

A request is a data type containing the method to call, its arguments and an identifier used to map the result to the function that has been called.

Constructors

Request 

Fields

reqMethod :: Text

Name of the function to call.

reqId :: !Int64

Identifier to map the result to a function call invocation.

reqArgs :: [Object]

Arguments for the function.

data Notification Source

A notification is similar to a Request. It essentially does the same thing, but the function is only called for its side effects. This type of message is sent by neovim if the caller there does not care about the result of the computation.

Constructors

Notification 

Fields

notMethod :: Text

Name of the function to call.

notArgs :: [Object]

Argumentse for the function.

module Data.Int

module Data.Time