package ocamlformat-rpc

  1. Overview
  2. Docs

Module Ocamlformat_rpcSource

Sourcemodule IO : sig ... end
Sourcemodule V : sig ... end
Sourcetype state =
  1. | Waiting_for_version
  2. | Version_defined of Ocamlformat_rpc_lib.Version.t * Ocamlformat.Conf.t
include sig ... end
Sourcemodule type Command_S = sig ... end
Sourcemodule type Client_S = sig ... end
Sourcemodule Init : sig ... end
Sourcemodule V1 : sig ... end
Sourcemodule V2 : sig ... end
Sourcetype client = [
  1. | `V1 of V1.Client.t
  2. | `V2 of V2.Client.t
]
Sourceval pick_client : pid:int -> IO.ic -> IO.oc -> string list -> (client, [ `Msg of string ]) result IO.t
Sourceval pid : client -> int
Sourceval halt : client -> (unit, [> `Msg of string ]) result IO.t
Sourceval config : (string * string) list -> client -> (unit, [> `Msg of string ]) result IO.t
Sourceval format : Ocamlformat.Syntax.t -> Ocamlformat.Conf.t -> Ocamlformat_stdlib.string -> (Ocamlformat_stdlib.string, Ocamlformat.Translation_unit.Error.t) Ocamlformat_stdlib.Result.t
Sourceval run_config : Ocamlformat.Conf.t -> (Ocamlformat_stdlib.string * Ocamlformat_stdlib.string) list -> (Ocamlformat.Conf.t, [> `Config_error of Ocamlformat.Config_option.Error.t ]) Ocamlformat_stdlib.result
Sourceval run_path : Ocamlformat_stdlib.string -> (Ocamlformat.Conf.t, [> `Path_error of Ocamlformat_stdlib.string ]) Ocamlformat_stdlib.result
Sourceval run_format : Ocamlformat.Conf.t -> Ocamlformat_stdlib.string -> ([> `Format of Ocamlformat_stdlib.string ], [> `Format_error of string ]) Ocamlformat_stdlib.result
Sourceval run_format_with_args : Ocamlformat_rpc_lib.format_args -> Ocamlformat.Conf.t -> Ocamlformat_stdlib.string -> ([> `Format of Ocamlformat_stdlib.string ], [> `Config_error of Ocamlformat.Config_option.Error.t | `Format_error of string | `Path_error of Ocamlformat_stdlib.string ]) Ocamlformat_stdlib.Result.t
Sourceval handle_format_error : 'a -> (Ocamlformat_stdlib.Out_channel.t -> [> `Error of 'a ] -> 'b) -> Base.unit
Sourceval handle_path_error : 'a -> (Ocamlformat_stdlib.Out_channel.t -> [> `Error of 'a ] -> 'b) -> Base.unit
Sourceval handle_config_error : Ocamlformat.Config_option.Error.t -> (Ocamlformat_stdlib.Out_channel.t -> [> `Error of string ] -> 'a) -> Base.unit
Sourceval handle_error : [< `Config_error of Ocamlformat.Config_option.Error.t | `Format_error of string | `Path_error of string ] -> (Ocamlformat_stdlib.Out_channel.t -> [> `Error of string ] -> 'a) -> Base.unit
Sourceval rpc_main : state -> (unit, 'a) Ocamlformat_stdlib.result
Sourceval run : unit -> (unit, 'a) Ocamlformat_stdlib.result