package orsetto
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
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.
module Render : sig ... end