package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Error : sig ... end
val parse_and_format : Syntax.t -> ?output_file:Ocamlformat_stdlib.string -> input_name:Ocamlformat_stdlib.string -> source:Ocamlformat_stdlib.string -> Conf.t -> (Ocamlformat_stdlib.string, Error.t) Ocamlformat_stdlib.Result.t

parse_and_format kind ?output_file ~input_name ~source conf opts parses and formats source as a list of fragments.

OCaml

Innovation. Community. Security.