From bca77e544cd7d0c15404886ae0e75e0152d99a7a Mon Sep 17 00:00:00 2001 From: c-cube Date: Thu, 10 Apr 2025 19:50:29 +0000 Subject: [PATCH] deploy: fc691e0abdc8700c9370905578f6381727d494fa --- trace/_doc-dir/CHANGES.md | 7 +++++++ yojson/Yojson/Safe/index.html | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/trace/_doc-dir/CHANGES.md b/trace/_doc-dir/CHANGES.md index a563d37b..dd9ae4f8 100644 --- a/trace/_doc-dir/CHANGES.md +++ b/trace/_doc-dir/CHANGES.md @@ -1,3 +1,10 @@ +# 0.9.1 + + +- fix: upper bound on ppxlib +- feat trace-tef: print names of non-closed spans upon exit +- fix: block signals in background threads + # 0.9 - add an extensible sum type, so users can implement custom events. For example diff --git a/yojson/Yojson/Safe/index.html b/yojson/Yojson/Safe/index.html index b50f3a27..cc752a3b 100644 --- a/yojson/Yojson/Safe/index.html +++ b/yojson/Yojson/Safe/index.html @@ -13,7 +13,7 @@ ?len:int -> ?suf:string -> ?std:bool -> - out_channel -> + Stdlib.out_channel -> t -> unit

Write a compact JSON value to a channel. Note: the out_channel is not flushed by this function.

See to_string for the role of the optional arguments and raised exceptions.

val to_output : ?buf:Stdlib.Buffer.t -> @@ -33,7 +33,7 @@ ?len:int -> ?suf:string -> ?std:bool -> - out_channel -> + Stdlib.out_channel -> t Stdlib.Seq.t -> unit

Write a sequence of suf-suffixed compact one-line JSON values to a channel.

  • parameter suf

    is the suffix of each value written. Newline by default. See to_channel for the role of the optional arguments and raised exceptions.

val seq_to_file : ?len:int -> @@ -46,7 +46,7 @@ ?std:bool -> Stdlib.Buffer.t -> t Stdlib.Seq.t -> - unit

Write a sequence of suf-suffixed compact one-line JSON values to an existing buffer.

  • parameter suf

    is the suffix of each value written. Newline by default. See to_string for the role of the optional arguments and raised exceptions.

val write_t : Stdlib.Buffer.t -> t -> unit

Write the given JSON value to the given buffer. Provided as a writer function for atdgen.

Miscellaneous

val sort : t -> t

Sort object fields (stable sort, comparing field names and treating them as byte sequences)

JSON pretty-printing

val pretty_print : ?std:bool -> Stdlib.Format.formatter -> t -> unit

Pretty-print into a Format.formatter. See to_string for the role of the optional std argument.

  • raises Json_error

    if float value is not allowed in standard JSON.

  • since 1.3.1
val pretty_to_string : ?std:bool -> t -> string

Pretty-print into a string. See to_string for the role of the optional std argument. See pretty_print for raised exceptions.

val pretty_to_channel : ?std:bool -> out_channel -> t -> unit

Pretty-print to a channel. See to_string for the role of the optional std argument. See pretty_print for raised exceptions.

val prettify : ?std:bool -> string -> string

Combined parser and pretty-printer. See to_string for the role of the optional std argument and raised exceptions.

val compact : ?std:bool -> string -> string

Combined parser and printer. See to_string for the role of the optional std argument and raised exceptions.

JSON readers

exception Finally of exn * exn

Exception describing a failure in both finalizer and parsing.

val from_string : + unit

Write a sequence of suf-suffixed compact one-line JSON values to an existing buffer.

  • parameter suf

    is the suffix of each value written. Newline by default. See to_string for the role of the optional arguments and raised exceptions.

val write_t : Stdlib.Buffer.t -> t -> unit

Write the given JSON value to the given buffer. Provided as a writer function for atdgen.

Miscellaneous

val sort : t -> t

Sort object fields (stable sort, comparing field names and treating them as byte sequences)

JSON pretty-printing

val pretty_print : ?std:bool -> Stdlib.Format.formatter -> t -> unit

Pretty-print into a Format.formatter. See to_string for the role of the optional std argument.

  • raises Json_error

    if float value is not allowed in standard JSON.

  • since 1.3.1
val pretty_to_string : ?std:bool -> t -> string

Pretty-print into a string. See to_string for the role of the optional std argument. See pretty_print for raised exceptions.

val pretty_to_channel : ?std:bool -> Stdlib.out_channel -> t -> unit

Pretty-print to a channel. See to_string for the role of the optional std argument. See pretty_print for raised exceptions.

val prettify : ?std:bool -> string -> string

Combined parser and pretty-printer. See to_string for the role of the optional std argument and raised exceptions.

val compact : ?std:bool -> string -> string

Combined parser and printer. See to_string for the role of the optional std argument and raised exceptions.

JSON readers

exception Finally of exn * exn

Exception describing a failure in both finalizer and parsing.

val from_string : ?buf:Stdlib.Buffer.t -> ?fname:string -> ?lnum:int -> @@ -55,7 +55,7 @@ ?buf:Stdlib.Buffer.t -> ?fname:string -> ?lnum:int -> - in_channel -> + Stdlib.in_channel -> t

Read a JSON value from a channel. See from_string for the meaning of the optional arguments and raised exceptions.

val from_file : ?buf:Stdlib.Buffer.t -> ?fname:string -> @@ -76,7 +76,7 @@ ?fin:(unit -> unit) -> ?fname:string -> ?lnum:int -> - in_channel -> + Stdlib.in_channel -> t Stdlib.Seq.t

Input a sequence of JSON values from a channel. Whitespace between JSON values is fine but not required.

  • parameter fin

    finalization function executed once when the end of the sequence is reached either because there is no more input or because the input could not be parsed, raising an exception.

  • raises Finally

    When the parsing and the finalizer both raised, Finally (exn, fin_exn) is raised, exn being the parsing exception and fin_exn the finalizer one.

See from_string for the meaning of the other optional arguments and other raised exceptions.

val seq_from_file : ?buf:Stdlib.Buffer.t -> ?fname:string -> @@ -91,7 +91,7 @@ ?fin:(unit -> unit) -> ?fname:string -> ?lnum:int -> - in_channel -> + Stdlib.in_channel -> json_line Stdlib.Seq.t

Input a sequence of JSON values, one per line, from a channel. Exceptions raised when reading malformed lines are caught and represented using `Exn.

See seq_from_channel for the meaning of the optional fin argument. See from_string for the meaning of the other optional arguments and raised exceptions.

val lineseq_from_file : ?buf:Stdlib.Buffer.t -> ?fname:string ->