package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.3.0.tbz
sha256=598e27258e4749b6e2511e2c5efe00d16f0965806296e808d202cd614d655fba
sha512=febe80f8a88fac7683cafbd045dceee4869beda1f250b78a1d94d3ad19e746388d24869e805abcb2f33f93687508d65db19a38424c1059670915c050b4f6dbb9

doc/lsp.stdune/Stdune/Result/index.html

Module Stdune.ResultSource

Result type

Sourcetype ('a, 'error) t = ('a, 'error) result =
  1. | Ok of 'a
  2. | Error of 'error
Sourceval return : 'a -> ('a, _) t
Sourceval ok : 'a -> ('a, _) t
Sourceval is_ok : (_, _) t -> bool
Sourceval is_error : (_, _) t -> bool
Sourceval iter : ('a, _) t -> f:('a -> unit) -> unit
Sourceval ok_exn : ('a, exn) t -> 'a
Sourceval try_with : (unit -> 'a) -> ('a, exn) t
Sourceval equal : ('a -> 'a -> bool) -> ('b -> 'b -> bool) -> ('a, 'b) t -> ('a, 'b) t -> bool
Sourceval hash : ('a -> int) -> ('b -> int) -> ('a, 'b) t -> int
Sourcemodule O : sig ... end
Sourceval map : ('a, 'error) t -> f:('a -> 'b) -> ('b, 'error) t
Sourceval bind : ('a, 'error) t -> f:('a -> ('b, 'error) t) -> ('b, 'error) t
Sourceval (>>=) : ('a, 'error) t -> ('a -> ('b, 'error) t) -> ('b, 'error) t
Sourceval map_error : ('a, 'error1) t -> f:('error1 -> 'error2) -> ('a, 'error2) t
Sourceval to_option : ('a, 'error) t -> 'a option
Sourceval to_dyn : 'a Dyn.Encoder.t -> 'error Dyn.Encoder.t -> ('a, 'error) t Dyn.Encoder.t
Sourceval errorf : ('a, unit, string, (_, string) t) format4 -> 'a

Produce Error <message>

Sourcetype ('a, 'error) result = ('a, 'error) t

For compatibility with some other code

Sourcemodule List : sig ... end
Sourcemodule Option : sig ... end
OCaml

Innovation. Community. Security.