package ocamlformat-rpc-lib

  1. Overview
  2. Docs
type t
val pid : t -> int
val mk : pid:int -> IO.ic -> IO.oc -> t
val config : (string * string) list -> t -> (unit, [> `Msg of string ]) Stdlib.result IO.t
val format : string -> t -> (string, [> `Msg of string ]) Stdlib.result IO.t
val halt : t -> (unit, [> `Msg of string ]) Stdlib.result IO.t

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