Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type !'a t = {
to_json : ?with_doc:bool -> 'a -> Yojson.Safe.json;
from_json : ?def:'a -> Yojson.Safe.json -> 'a;
}
val make :
(?with_doc:bool -> 'a -> Yojson.Safe.json) ->
(?def:'a -> Yojson.Safe.json -> 'a) ->
'a t
val of_ok_error :
(Yojson.Safe.json -> [ `Error of 'b | `Ok of 'a ]) ->
Yojson.Safe.json ->
'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
type assocs = (string * Yojson.Safe.json) list