package ocf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a t = {
  1. to_json : ?with_doc:bool -> 'a -> Yojson.Safe.t;
  2. from_json : ?def:'a -> Yojson.Safe.t -> 'a;
}
val make : (?with_doc:bool -> 'a -> Yojson.Safe.t) -> (?def:'a -> Yojson.Safe.t -> 'a) -> 'a t
val of_ok_error : (Yojson.Safe.t -> [ `Error of 'b | `Ok of 'a ]) -> Yojson.Safe.t -> 'a
val int : int t
val float : float t
val bool : bool t
val string : string t
val string_ : ('a -> string) -> (string -> 'a) -> 'a t
val list : 'a t -> 'a list t
val option : 'a t -> 'a option t
val pair : 'a t -> 'b t -> ('a * 'b) t
val triple : 'a t -> 'b t -> 'c t -> ('a * 'b * 'c) t
type assocs = (string * Yojson.Safe.t) list
val string_map : fold:((string -> 'a -> assocs -> assocs) -> 'map -> assocs -> assocs) -> add:(string -> 'a -> 'map -> 'map) -> empty:'map -> 'a t -> 'map t
OCaml

Innovation. Community. Security.