package fmt
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=6fa4b19dd6020db573d2de84ffec0258d010b7a7d307c45cba71d7fa6a90a646
md5=c317aa285fe13732cd1f27674f974357
CHANGES.md.html
v0.8.7 2019-07-21 Zagreb
Add
Fmt.hex
and friends. Support for hex dumping. Thanks to David Kaloper Meršinjak for the design and implementation..Add
Fmt.si_size
to format integer magnitudes using SI prefixes.Add
Fmt.uint64_ns_span
to format time spans.Add
Fmt.truncated
to truncate your long strings.Add
Fmt.flush
, has the effect ofFormat.pp_print_flush
.Add
Fmt.[Dump.]{field,record}
for records (#9).Add
Fmt.concat
to apply a list of formatters to a value.Add
Fmt.{semi,sps}
, separators.Add
Fmt.{error,error_msg}
to formatresult
values.Add
Fmt.failwith_notrace
.Add
Fmt.( ++ )
, alias forFmt.append
.Add
Fmt.Dump.string
.Add more ANSI tty formatting styles and make them composable.
Change
Fmt.{const,comma,cut,sp}
, generalize signature.Change
Fmt.append
, incompatible signature. UseFmt.(pair ~sep:nop)
if you were using it (backward compatible with earlier versions ofFmt
).Deprecate
Fmt.{strf,kstrf,strf_like}
in favor ofFmt.{str,kstr,str_like}
.Deprecate
Fmt.{always,unit}
in favor ofFmt.any
.Deprecate
Fmt.{prefix,suffix}
(specializes Fmt.( ++ )).Deprecate
Fmt.styled_unit
.No longer subvert the
Format
tag system to do dirty things. Thanks to David Kaloper Meršinjak for the work.
v0.8.6 2019-04-01 La Forclaz (VS)
Add
Fmt.{seq,Dump.seq}
to format'a Seq.t
values. Thanks to Hezekiah M. Carty for the patch.Handle
Pervasives
's deprecation via dependency onstdlib-shims
.Fmt.Dump.signal
format signals added in 4.03.Fix toplevel initialization for omod (#33).
Require at least OCaml 4.03 (drops dependency on
result
anduchar
compatibility packages).
v0.8.5 2017-12-27 La Forclaz (VS)
Fix
Fmt.{kstrf,strf_like}
when they are partially applied and repeatedly called. Thanks to Thomas Gazagnaire for the report.Add
Fmt.comma
.Relax the
Fmt.(invalid_arg, failwith)
type signature. Thanks to Hezekiah M. Carty for the patch.
v0.8.4 2017-07-08 Zagreb
Add
Fmt.{invalid_arg,failwith}
. Thanks to Hezekiah M. Carty for the patch.
v0.8.3 2017-04-13 La Forclaz (VS)
Fix
Fmt.exn_backtrace
. Thanks to Thomas Leonard for the report.
v0.8.2 2017-03-20 La Forclaz (VS)
Fix
META
file.
v0.8.1 2017-03-15 La Forclaz (VS)
Fmt_tty.setup
, treat emptyTERM
env var as dumb.Add
Fmt.Dump.uchar
formatter for inspectingUchar.t
values.
v0.8.0 2016-05-23 La Forclaz (VS)
Build depend on topkg.
Relicense from BSD3 to ISC.
Tweak
Fmt.Dump.option
to indent like in sources.Add
Fmt.Dump.signal
formatter forSys
signal numbers.Add
Fmt[.Dump].result
, formatter forresult
values.Add
Fmt.{words,paragraphs}
formatters on US-ASCII strings.Add
Fmt.exn[_backtrace]
. Thanks to Edwin Török for suggesting.Add
Fmt.quote
.Rename
Fmt.text_range
toFmt.text_loc
and simplify output when range is a position.
v0.7.1 2015-12-03 Cambridge (UK)
Add optional cmdliner support. See the
Fmt_cli
module provided by the packagefmt.cli
.
v0.7.0 2015-09-17 Cambridge (UK)
First Release.