lsp-client-0.4.0.0: Haskell library for Language Server Protocol clients
Safe HaskellSafe-Inferred
LanguageGHC2021

Language.LSP.Client.Decoding

Synopsis

Documentation

getNextMessage :: Handle -> IO LazyByteString Source #

Fetches the next message bytes based on the Content-Length header

type RequestMap = IxMap LspId RequestCallback Source #

data RequestCallback (m :: Method 'ClientToServer 'Request) Source #

Constructors

RequestCallback 

Fields

removeNotificationCallback :: SMethod (m :: Method 'ServerToClient 'Notification) -> NotificationMap -> NotificationMap Source #

decodeFromServerMsg :: LazyByteString -> RequestMap -> ((FromServerMessage, IO ()), RequestMap) Source #