Jsont.Sort
Sorts of JSON values.
val to_string : t -> string
to_string sort
is a string for sort sort
.
val pp : Stdlib.Format.formatter -> t -> unit
pp
formats sorts.
For formatting error messages.
val or_kind : kind:string -> t -> string
or_kind ~kind sort
is to_string sort
if kind
is ""
and kind
otherwise.
val kinded : kind:string -> t -> string
kinded ~kind sort
is to_string sort
if kind
is ""
and String.concat " " [kind; to_string sort]
otherwise.