package orsetto
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=bb2af4d8b376b2d60fa996bd4d3b90d9f3559455672540f6d7c3598af81d483b
md5=f7bfa83013801b42fcdba607af2f012b
doc/orsetto.cf/Cf_emit/To_formatter/index.html
Module Cf_emit.To_formatter
type nonrec 'a t = (Format.formatter, 'a) tThe type of emitters to Format.formatter channels.
val char : char tThe emitter for characters.
val string : string tThe emitter for strings.
val int : int tThe emitter for integers.
val float : float tThe emitter for floating point numbers.
val bool : bool tThe emitter for boolean values.
val break : int -> int tUse 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 tThe single space break hint.
val cut : unit tThe zero space break hint.
Use box d m to enclose m in a compacting pretty-printing box with offset d.
Use vbox d m to enclose m in a vertical pretty-printing box with offset d.
Use hvbox d m to enclose m in a horizontal/vertical pretty-printing box with offset d.
Use hovbox d m to enclose m in a horizontal-or-vertical pretty-printing box with offset d.
val string_as : int -> string tUse string_as n to make a string emitter that formats the string as if it is length n.
val to_string : 'a t -> 'a -> stringUse 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 -> unitUse to_string m v to emit v with m to a fresh output channel formatter.