···3232 | Float -> "float"
33333434let pp ppf s = Format.pp_print_string ppf (to_string s)
3535+let or_kind ~kind s = if kind <> "" then kind else to_string s
3636+let kinded' ~kind:k s = if k = "" then s else k ^ " " ^ s
3737+let kinded ~kind s = kinded' ~kind (to_string s)
+10
lib/sort.mli
···29293030val pp : Format.formatter -> t -> unit
3131(** [pp] formats sorts. *)
3232+3333+val or_kind : kind:string -> t -> string
3434+(** [or_kind ~kind s] is [kind] when non-empty, otherwise {!to_string} [s]. *)
3535+3636+val kinded' : kind:string -> string -> string
3737+(** [kinded' ~kind s] is [s] when [kind] is empty, [kind] followed by a space
3838+ and [s] otherwise. *)
3939+4040+val kinded : kind:string -> t -> string
4141+(** [kinded ~kind sort] is {!kinded'} applied to {!to_string} [sort]. *)