package coq-lsp

  1. Overview
  2. Docs
Language Server Protocol native server for Coq

Install

Dune Dependency

Authors

Maintainers

Sources

coq-lsp-0.2.3.9.0.tbz
sha256=8776582dddfe768623870cf540ff6ba1e96a44a36e85db18ab93d238d640f92a
sha512=2837889bf99bfe715bd0e752782211a76a14aac71ed37a4fb784f4f0abe338352c9c6d8caa37daf79c036997add1cb306c523f793625b38709f3b5e245380223

doc/coq-lsp.coq/Coq/Workspace/index.html

Module Coq.WorkspaceSource

Sourcemodule Flags : sig ... end
Sourcemodule Warning : sig ... end
Sourcemodule Require : sig ... end
Sourcetype t = private {
  1. coqlib : string;
    (*

    Path to coqlib

    *)
  2. findlib_config : string option;
    (*

    Path to findlib config file, if None, default

    *)
  3. ocamlpath : string list;
    (*

    extra ocamlpath paths, for example for local plugins

    *)
  4. vo_load_path : Loadpath.vo_path list;
    (*

    List of -R / -Q flags passed to Coq, usually theories we depend on

    *)
  5. require_libs : Require.t list;
    (*

    Modules to preload, usually Coq.Init.Prelude

    *)
  6. flags : Flags.t;
    (*

    Coq-specific flags

    *)
  7. warnings : Warning.t list;
  8. kind : string;
    (*

    How the workspace was built

    *)
  9. debug : bool;
    (*

    Enable backtraces

    *)
}
Sourceval inject_requires : extra_requires:Require.t list -> t -> t

Inject some requires

Sourceval compare : t -> t -> int

compare

Sourceval hash : t -> int

hash

Sourceval describe : t -> string * string

describe w return user, extra, where user is the relevant user message, and extra contains lower-level debug data such as all findlib packages in scope, etc... data

Sourceval describe_guess : (t, string) Result.t -> string * string
Sourcemodule CmdLine : sig ... end
Sourceval guess : token:Limits.Token.t -> debug:bool -> cmdline:CmdLine.t -> dir:string -> (t, string) Result.t
Sourceval default : debug:bool -> cmdline:CmdLine.t -> t
Sourceval apply : intern:Library.Intern.t -> uri:Lang.LUri.File.t -> t -> unit

apply libname w will prepare Coq for a new file libname on workspace w

Sourceval dirpath_of_uri : uri:Lang.LUri.File.t -> Names.DirPath.t
OCaml

Innovation. Community. Security.