package kappa-library
Module Kappa_data_structures.Result_utilSource
The subset of Cohttp.Code.status we need
Source
val write_t :
(Buffer.t -> 'ok -> unit) ->
(Buffer.t -> 'error -> unit) ->
Buffer.t ->
('ok, 'error) t ->
unitOutput a JSON value of type t.
Source
val string_of_t :
(Buffer.t -> 'ok -> unit) ->
(Buffer.t -> 'error -> unit) ->
?len:int ->
('ok, 'error) t ->
stringSerialize a value of type t into a JSON string.
Source
val read_t :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'ok) ->
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'error) ->
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
('ok, 'error) tInput JSON data of type t.
Source
val t_of_string :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'ok) ->
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'error) ->
string ->
('ok, 'error) tDeserialize JSON data of type t.