package ocplib-resto

  1. Overview
  2. Docs
type descr = {
  1. name : string;
  2. descr : string option;
}
type 'a arg = {
  1. id : 'a Ty.id;
  2. destruct : string -> ('a, string) Result.result;
  3. construct : 'a -> string;
  4. descr : descr;
}
val eq : 'a arg -> 'b arg -> ('a, 'b) Ty.eq
val make : ?descr:string -> name:string -> destruct:(string -> ('a, string) Result.result) -> construct:('a -> string) -> 'a arg
val descr : 'a arg -> descr
val descr_encoding : descr Json_encoding.encoding
val int : int arg
val float : float arg
val int32 : int32 arg
val int64 : int64 arg
OCaml

Innovation. Community. Security.