package reason-parser

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type wrap = [
  1. | `Wrap_atoms
  2. | `Always_wrap
  3. | `Never_wrap
  4. | `Force_breaks
  5. | `Force_breaks_rec
  6. | `No_breaks
]
type label_break = [
  1. | `Auto
  2. | `Always
  3. | `Always_rec
  4. | `Never
]
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. label_break : label_break;
  2. space_after_label : bool;
  3. indent_after_label : int;
  4. 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. | `None
  2. | `Escape of (string -> int -> int -> unit) -> string -> int -> int -> unit
  3. | `Escape_string of string -> string
]
type styles = (style_name * style) list
val propagate_from_leaf_to_root : init_acc:(t -> 'a) -> merge_acc:('a -> 'b -> 'a) -> map_node:(t -> 'a -> t * 'b) -> t -> t * 'b
val propagate_forced_breaks : t -> t
module Pretty : sig ... end
module Compact : sig ... end
module Param : sig ... end