package ocamlformat

  1. Overview
  2. Docs

Module Ocamlformat_rpcSource

Sourcemodule IO : sig ... end
Sourcemodule Protocol : sig ... end
Sourcemodule V : sig ... end
Sourcetype state =
  1. | Waiting_for_version
  2. | Version_defined of Rpc.Version.t * Ocamlformat_lib.Conf.t
Sourceval format : Ocamlformat_lib.Syntax.t -> Ocamlformat_lib.Conf.t -> Ocamlformat_stdlib.string -> (Ocamlformat_stdlib.string, Ocamlformat_lib.Translation_unit.Error.t) Ocamlformat_stdlib.Result.t
Sourceval run_config : Ocamlformat_lib.Conf.t -> (Ocamlformat_stdlib.string * Ocamlformat_stdlib.string) list -> (Ocamlformat_lib.Conf.t, [> `Config_error of Ocamlformat_lib.Conf.Error.t ]) Ocamlformat_stdlib.result
Sourceval run_path : Ocamlformat_stdlib.string -> (Ocamlformat_lib.Conf.t, [> `Path_error of Ocamlformat_stdlib.string ]) Ocamlformat_stdlib.result
Sourceval run_format : Ocamlformat_lib.Conf.t -> Ocamlformat_stdlib.string -> ([> `Format of Ocamlformat_stdlib.string ], [> `Format_error of string ]) Ocamlformat_stdlib.result
Sourceval run_format_with_args : Rpc.format_args -> Ocamlformat_lib.Conf.t -> Ocamlformat_stdlib.string -> ([> `Format of Ocamlformat_stdlib.string ], [> `Config_error of Ocamlformat_lib.Conf.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) -> 'b
Sourceval handle_path_error : 'a -> (Ocamlformat_stdlib.Out_channel.t -> [> `Error of 'a ] -> 'b) -> 'b
Sourceval handle_config_error : Ocamlformat_lib.Conf.Error.t -> (Ocamlformat_stdlib.Out_channel.t -> [> `Error of string ] -> 'a) -> 'a
Sourceval handle_error : [< `Config_error of Ocamlformat_lib.Conf.Error.t | `Format_error of string | `Path_error of string ] -> (Ocamlformat_stdlib.Out_channel.t -> [> `Error of string ] -> 'a) -> 'a
Sourceval rpc_main : state -> (unit, 'a) Ocamlformat_stdlib.result
Sourceval run : unit -> (unit, 'a) Ocamlformat_stdlib.result
OCaml

Innovation. Community. Security.