package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.2.0.tbz
sha256=e4e56590b9af02160e5af7733763897d7cfe3f9b876692af4d4184ab0fce4bcb
sha512=724d5190a678ca8a3f3c13915cbfcf8d3cce8efa43e0dde130b14c45065b6ccd22507951e79977bcecf361c7928f271d312b87642bb2c52f33669c3e952a7e1b

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

Module Stdune.Io

IO operations.

val close_in : in_channel -> unit
val close_out : out_channel -> unit
val close_both : (in_channel * out_channel) -> unit
val input_lines : in_channel -> string list
val copy_channels : in_channel -> out_channel -> unit

This function is not safe to use from multiple threads, even if operating on unrelated channels because it uses a statically-allocated global buffer.

val read_all : in_channel -> string
type path = Path.t
val open_in : ?binary:bool -> path -> in_channel
val open_out : ?binary:bool -> path -> out_channel
val with_file_in : ?binary:bool -> path -> f:(in_channel -> 'a) -> 'a
val with_file_out : ?binary:bool -> path -> f:(out_channel -> 'a) -> 'a
val with_lexbuf_from_file : path -> f:(Lexing.lexbuf -> 'a) -> 'a
val lines_of_file : path -> string list
val read_file : ?binary:bool -> path -> string
val write_file : ?binary:bool -> path -> string -> unit
val compare_files : path -> path -> Ordering.t
val compare_text_files : path -> path -> Ordering.t
val write_lines : ?binary:bool -> path -> string list -> unit
val copy_file : ?chmod:(int -> int) -> src:path -> dst:path -> unit -> unit
val setup_copy : ?chmod:(int -> int) -> src:path -> dst:path -> unit -> in_channel * out_channel
val file_line : path -> int -> string
val file_lines : path -> start:int -> stop:int -> (string * string) list
module String_path : sig ... end
OCaml

Innovation. Community. Security.