package coq-lsp

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Base.ResponseSource

Sourcetype t =
  1. | Ok of {
    1. id : int;
    2. result : Yojson.Safe.t;
    }
  2. | Error of {
    1. id : int;
    2. code : int;
    3. message : string;
    4. data : Yojson.Safe.t option;
    }
Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval mk_ok : id:int -> result:Yojson.Safe.t -> t

Answer to a request

Sourceval mk_error : id:int -> code:int -> message:string -> data:Yojson.Safe.t option -> t

Fail a request

Sourceval id : t -> int
OCaml

Innovation. Community. Security.