Module Down_std.Fmt

Format module helpers.

type 'a t = Stdlib.Format.formatter -> 'a -> unit

The type for value formatters.

val pf : Stdlib.Format.formatter -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a

pf is Format.fprintf

val pr : ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a

pf is Format.printf

val kpf : (Stdlib.Format.formatter -> 'a) -> Stdlib.Format.formatter -> ('b, Stdlib.Format.formatter, unit, 'a) Stdlib.format4 -> 'b

kpf is Format.kfprintf.

val str : ('a, Stdlib.Format.formatter, unit, string) Stdlib.format4 -> 'a

str is Fromat.asprintf.

val any : (unit, Stdlib.Format.formatter, unit) Stdlib.format -> 'a t

amy fmt formats any value with fmt.

val sp : 'a t

sp is Format.pp_print_space.

val string : string t

string is Format.pp_print_string.

val list : ?sep:unit t -> 'a t -> 'a list t

list is Format.pp_print_list.

val text : string t

text is Format.pp_print_text.

val tty : Tty.style list -> 'a t -> 'a t

tty style pp_v formats pp_v with style style.