package coq-lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 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;
    }
val to_yojson : t -> Yojson.Safe.t
val mk_ok : id:int -> result:Yojson.Safe.t -> t

Answer to a request

val mk_error : id:int -> code:int -> message:string -> t

Fail a request

val id : t -> int
OCaml

Innovation. Community. Security.