Native CBOR codec with type-safe combinators
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "sort: trim unused helpers across encoding libs"

This reverts commit 58d9592128efa768a384d69bcb6a544fa3b753ca.

+13
+3
lib/sort.ml
··· 32 32 | Float -> "float" 33 33 34 34 let pp ppf s = Format.pp_print_string ppf (to_string s) 35 + let or_kind ~kind s = if kind <> "" then kind else to_string s 36 + let kinded' ~kind:k s = if k = "" then s else k ^ " " ^ s 37 + let kinded ~kind s = kinded' ~kind (to_string s)
+10
lib/sort.mli
··· 29 29 30 30 val pp : Format.formatter -> t -> unit 31 31 (** [pp] formats sorts. *) 32 + 33 + val or_kind : kind:string -> t -> string 34 + (** [or_kind ~kind s] is [kind] when non-empty, otherwise {!to_string} [s]. *) 35 + 36 + val kinded' : kind:string -> string -> string 37 + (** [kinded' ~kind s] is [s] when [kind] is empty, [kind] followed by a space 38 + and [s] otherwise. *) 39 + 40 + val kinded : kind:string -> t -> string 41 + (** [kinded ~kind sort] is {!kinded'} applied to {!to_string} [sort]. *)