cmdliner deprecations.Fmt.if', thanks to Rizo for the suggestion and patch.The solution using ephemerons introduced in v0.8.7 for attaching custom data to formatters has unreliable performance characteristics in some usage scenarios. Namely use of Fmt.styled with Fmt.[k]str heavy code as those rely on Format.{k,a}sprintf which allocate one formatter per call.
Hence we subvert again the Format tag system to do dirty things. However since as of 4.08 tags became an extensible sum type we can keep our dirty things entirely internal.
Thanks to Thomas Leonard for reporting and David Kaloper Meršinjak for further investigations (#52).
stdlib-shims and seq packages.[@@ocaml.deprecated] annotation to deprecated functions. Thanks to Antonin Décimo for the patch.Dump.{iter_bindings,hashtbl} which since 0.8.7 no longer prints seperators. Thanks to Edwin Török for the patch.Fmt.error_msg to make it easier to compose with other errors. Thanks to Thomas Leonard for the patch.Fix build on 32-bit platforms.
Fmt.hex and friends. Support for hex dumping. Thanks to David Kaloper Meršinjak for the design and implementation..Fmt.si_size to format integer magnitudes using SI prefixes.Fmt.uint64_ns_span to format time spans.Fmt.truncated to truncate your long strings.Fmt.flush, has the effect of Format.pp_print_flush.Fmt.[Dump.]{field,record} for records (#9).Fmt.concat to apply a list of formatters to a value.Fmt.{semi,sps}, separators.Fmt.{error,error_msg} to format result values.Fmt.failwith_notrace.Fmt.( ++ ), alias for Fmt.append.Fmt.Dump.string.Fmt.{const,comma,cut,sp}, generalize signature.Fmt.append, incompatible signature. Use Fmt.(pair ~sep:nop) if you were using it (backward compatible with earlier versions of Fmt).Fmt.{strf,kstrf,strf_like} in favor of Fmt.{str,kstr,str_like}.Fmt.{always,unit} in favor of Fmt.any.Fmt.{prefix,suffix} (specializes Fmt.( ++ )).Fmt.styled_unit.Format tag system to do dirty things. Thanks to David Kaloper Meršinjak for the work.Fmt.{seq,Dump.seq} to format 'a Seq.t values. Thanks to Hezekiah M. Carty for the patch.Pervasives's deprecation via dependency on stdlib-shims.Fmt.Dump.signal format signals added in 4.03.result and uchar compatibility packages).Fmt.{kstrf,strf_like} when they are partially applied and repeatedly called. Thanks to Thomas Gazagnaire for the report.Fmt.comma.Fmt.(invalid_arg, failwith) type signature. Thanks to Hezekiah M. Carty for the patch.Fmt.{invalid_arg,failwith}. Thanks to Hezekiah M. Carty for the patch.Fmt.exn_backtrace. Thanks to Thomas Leonard for the report.META file.Fmt_tty.setup, treat empty TERM env var as dumb.Fmt.Dump.uchar formatter for inspecting Uchar.t values.Fmt.Dump.option to indent like in sources.Fmt.Dump.signal formatter for Sys signal numbers.Fmt[.Dump].result, formatter for result values.Fmt.{words,paragraphs} formatters on US-ASCII strings.Fmt.exn[_backtrace]. Thanks to Edwin Török for suggesting.Fmt.quote.Fmt.text_range to Fmt.text_loc and simplify output when range is a position.Fmt_cli module provided by the package fmt.cli.First Release.