package easy-format

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type wrap = [
  1. | `Always_wrap
  2. | `Force_breaks
  3. | `Never_wrap
  4. | `No_breaks
  5. | `Wrap_atoms
]
type style_name = string
type style = {
  1. tag_open : string;
  2. tag_close : string;
}
type atom_param = {
  1. atom_style : style_name option;
}
val atom : atom_param
type list_param = {
  1. space_after_opening : bool;
  2. space_after_separator : bool;
  3. space_before_separator : bool;
  4. separators_stick_left : bool;
  5. space_before_closing : bool;
  6. stick_to_label : bool;
  7. align_closing : bool;
  8. wrap_body : wrap;
  9. indent_body : int;
  10. list_style : style_name option;
  11. opening_style : style_name option;
  12. body_style : style_name option;
  13. separator_style : style_name option;
  14. closing_style : style_name option;
}
val list : list_param
type label_param = {
  1. space_after_label : bool;
  2. indent_after_label : int;
  3. label_style : style_name option;
}
val label : label_param
type t =
  1. | Atom of string * atom_param
  2. | List of string * string * string * list_param * t list
  3. | Label of t * label_param * t
  4. | Custom of Format.formatter -> unit
type escape = [
  1. | `Escape of (string -> int -> int -> unit) -> string -> int -> int -> unit
  2. | `Escape_string of string -> string
  3. | `None
]
type styles = (style_name * style) list
module Pretty : sig ... end
module Compact : sig ... end
module Param : sig ... end
OCaml

Innovation. Community. Security.