package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Indentation of various nodes.

Expressions

val function_ : Conf.t -> ctx:Ast.t -> ctx0:Ast.t -> parens:Ocamlformat_stdlib.bool -> Ocamlformat_stdlib.int

Check the function-indent-nested option, or return default (0 if not provided) if the option does not apply.

val fun_args : Conf.t -> Ocamlformat_stdlib.int
val fun_type_annot : Conf.t -> Ocamlformat_stdlib.int
val docked_function_after_fun : Conf.t -> parens:Ocamlformat_stdlib.bool -> ctx0:Ast.t -> ctx:Ast.t -> Ocamlformat_stdlib.int
val record_docstring : Conf.t -> Ocamlformat_stdlib.int
val constructor_docstring : Conf.t -> Ocamlformat_stdlib.int
val exp_constraint : Conf.t -> Ocamlformat_stdlib.int
val assignment_operator_bol : Conf.t -> Ocamlformat_stdlib.int

Module expressions

val mod_unpack_annot : Conf.t -> Ocamlformat_stdlib.int

Module types

val mty_with : Conf.t -> Ocamlformat_stdlib.int

Types

val type_constr : Conf.t -> Ocamlformat_stdlib.int
val variant_type_arg : Conf.t -> Ocamlformat_stdlib.int
OCaml

Innovation. Community. Security.