Module Tpf_fmt
Generic printers.
This modules depends on fmt.
Generic printer
type sum= string -> unit Fmt.t list Fmt.tsum name argsformats a variant with constructornameand argument formattersargs.
type record= string option -> (string * unit Fmt.t) list Fmt.trecord None fieldsformats a plain constructorless record;record (Some name) fieldsformats an inline record with constructorname.argsare argument formatters paired with field names.
data interface
val data0 : ?sum:sum -> ?record:record -> 'a Tpf.data0 -> 'a Fmt.tval data1 : ?sum:sum -> ?record:record -> ('a, 'b) Tpf.data1 -> 'a Fmt.t -> 'b Fmt.tval data2 : ?sum:sum -> ?record:record -> ('a, 'b, 'c) Tpf.data2 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.tval data3 : ?sum:sum -> ?record:record -> ('a, 'b, 'c, 'd) Tpf.data3 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.t -> 'd Fmt.tval data4 : ?sum:sum -> ?record:record -> ('a, 'b, 'c, 'd, 'e) Tpf.data4 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.t -> 'd Fmt.t -> 'e Fmt.tval data5 : ?sum:sum -> ?record:record -> ('a, 'b, 'c, 'd, 'e, 'f) Tpf.data5 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.t -> 'd Fmt.t -> 'e Fmt.t -> 'f Fmt.tval data6 : ?sum:sum -> ?record:record -> ('a, 'b, 'c, 'd, 'e, 'f, 'g) Tpf.data6 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.t -> 'd Fmt.t -> 'e Fmt.t -> 'f Fmt.t -> 'g Fmt.tval data7 : ?sum:sum -> ?record:record -> ('a, 'b, 'c, 'd, 'e, 'f, 'g, 'h) Tpf.data7 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.t -> 'd Fmt.t -> 'e Fmt.t -> 'f Fmt.t -> 'g Fmt.t -> 'h Fmt.tval data8 : ?sum:sum -> ?record:record -> ('a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i) Tpf.data8 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.t -> 'd Fmt.t -> 'e Fmt.t -> 'f Fmt.t -> 'g Fmt.t -> 'h Fmt.t -> 'i Fmt.tval data9 : ?sum:sum -> ?record:record -> ('a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j) Tpf.data9 -> 'a Fmt.t -> 'b Fmt.t -> 'c Fmt.t -> 'd Fmt.t -> 'e Fmt.t -> 'f Fmt.t -> 'g Fmt.t -> 'h Fmt.t -> 'i Fmt.t -> 'j Fmt.t