package pprint

  1. Overview
  2. Docs
type document
val empty : document
val char : char -> document
val string : string -> document
val substring : string -> int -> int -> document
val fancystring : string -> int -> document
val fancysubstring : string -> int -> int -> int -> document
val utf8string : string -> document
val hardline : document
val blank : int -> document
val break : int -> document
val (^^) : document -> document -> document
val nest : int -> document -> document
val group : document -> document
val ifflat : document -> document -> document
val align : document -> document
type point = int * int
type range = point * point
val range : (range -> unit) -> document -> document
module ToChannel : sig ... end
module ToBuffer : sig ... end
module ToFormatter : sig ... end
type requirement = int
val infinity : requirement
class type output = object ... end
type state = {
  1. width : int;
  2. ribbon : int;
  3. mutable last_indent : int;
  4. mutable line : int;
  5. mutable column : int;
}
class type custom = object ... end
val custom : custom -> document
val requirement : document -> requirement
val pretty : output -> state -> int -> bool -> document -> unit
val compact : output -> document -> unit
OCaml

Innovation. Community. Security.