package ocamlformat-rpc-lib

  1. Overview
  2. Docs
include Client_S with type cmd = Command.t
type t
type cmd = Command.t
val pid : t -> int
val mk : pid:int -> IO.ic -> IO.oc -> t
val query : cmd -> t -> cmd IO.t
val halt : t -> (unit, [> `Msg of string ]) result IO.t

The caller must close the input and output channels after calling halt.

val config : (string * string) list -> t -> (unit, [> `Msg of string ]) result IO.t
val format : string -> t -> (string, [> `Msg of string ]) result IO.t
OCaml

Innovation. Community. Security.