package orsetto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type nonrec 'a t = (Format.formatter, 'a) t

The type of emitters to Format.formatter channels.

val char : char t

The emitter for characters.

val string : string t

The emitter for strings.

val int : int t

The emitter for integers.

val float : float t

The emitter for floating point numbers.

val bool : bool t

The emitter for boolean values.

val break : int -> int t

Use break d to make an emitter for formatting break hints for offset d that use the input for the number of spaces.

val space : unit t

The single space break hint.

val cut : unit t

The zero space break hint.

val box : int -> 'a t -> 'a t

Use box d m to enclose m in a compacting pretty-printing box with offset d.

val hbox : 'a t -> 'a t

Use hbox d m to enclose m in a horizontal pretty-printing box.

val vbox : int -> 'a t -> 'a t

Use vbox d m to enclose m in a vertical pretty-printing box with offset d.

val hvbox : int -> 'a t -> 'a t

Use hvbox d m to enclose m in a horizontal/vertical pretty-printing box with offset d.

val hovbox : int -> 'a t -> 'a t

Use hovbox d m to enclose m in a horizontal-or-vertical pretty-printing box with offset d.

val brace : 'a t -> 'a t

Use brace m to enclose m in matching curly-brace characters.

val bracket : 'a t -> 'a t

Use bracket m to enclose m in matching square-bracket characters.

val paren : 'a t -> 'a t

Use paren m to enclose m in matching parenthesis characters.

val quote : 'a t -> 'a t

Use quote m to enclose m in double-quote characters.

val string_as : int -> string t

Use string_as n to make a string emitter that formats the string as if it is length n.

val seq : 'a t -> 'a Seq.t t

Use seq m as an abbreviation for seq ~sep:cut m.

val group : unit t Seq.t -> unit t

Use group s as an abbreviation for group ~sep:cut s.

val to_string : 'a t -> 'a -> string

Use to_string m v to emit v with m to a fresh string formatter and returns its contents.

val to_channel : out_channel -> 'a t -> 'a -> unit

Use to_string m v to emit v with m to a fresh output channel formatter.

module Render : sig ... end