package ocamlformat-mlx

  1. Overview
  2. Docs
Auto-formatter for OCaml .mlx code

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocamlformat-mlx-0.28.1.2.tbz
sha256=af4e7ed7e84bd681e1058c3573e255427aa3c3a9952c115f1c2441295766d14c
sha512=48a153ad33283a95b3d5a54cd04e8a26feb5d394b291a45aa01f77e376bcfc94a2b6350b3f3611a3d2511f25b0f69f6d2d694d7ace81004ed7e6850ac6947b4c

doc/ocamlformat-mlx.bin_conf/Bin_conf/index.html

Module Bin_confSource

Sourceval build_config : enable_outside_detected_project:Ocamlformat_stdlib.bool -> root:Ocamlformat_stdlib.Fpath.t Ocamlformat_stdlib.option -> file:Ocamlformat_stdlib.string -> is_stdin:Ocamlformat_stdlib.bool -> (Ocamlformat_lib.Conf.t, Ocamlformat_stdlib.string) Ocamlformat_stdlib.Result.t
Sourcetype file =
  1. | Stdin
  2. | File of Ocamlformat_stdlib.string
Sourcetype input = {
  1. kind : Ocamlformat_lib.Syntax.t;
  2. name : Ocamlformat_stdlib.string;
  3. file : file;
  4. conf : Ocamlformat_lib.Conf.t;
}
Sourcetype action =
  1. | In_out of input * Ocamlformat_stdlib.string Ocamlformat_stdlib.option
    (*

    Format input file (or - for stdin) of given kind to output file, or stdout if None.

    *)
  2. | Inplace of input Ocamlformat_stdlib.list
    (*

    Format in-place, overwriting input file(s).

    *)
  3. | Check of input Ocamlformat_stdlib.list
    (*

    Check whether the input files already are formatted.

    *)
  4. | Print_config of Ocamlformat_lib.Conf.t
    (*

    Print the configuration and exit.

    *)

Formatting action: input type and source, and output destination.

Sourceval action : Ocamlformat_stdlib.unit -> (action Cmdliner.Cmd.eval_ok, Cmdliner.Cmd.eval_error) Ocamlformat_stdlib.Result.t