package reddit_api_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Ezjsonm end
type value = [
  1. | `A of value list
  2. | `Bool of bool
  3. | `Float of float
  4. | `Null
  5. | `O of (string * value) list
  6. | `String of string
]
val value : [ `A of value list | `O of (string * value) list ] -> value
val wrap : value -> [> {t}1 ]
val unwrap : [ `A of value list | `O of (string * value) list ] -> value
val from_channel : Stdlib.in_channel -> [> {t}1 ]
val from_string : string -> [> {t}1 ]
val value_from_channel : Stdlib.in_channel -> value
val value_from_string : string -> value
val value_from_src : Jsonm.src -> value
type error_location = (int * int) * (int * int)
type read_value_error = [
  1. | `Error of error_location * Jsonm.error
  2. | `Unexpected of [ `End_of_input | `Lexeme of error_location * Jsonm.lexeme * string ]
]
type read_error = [
  1. | `Error of error_location * Jsonm.error
  2. | `Not_a_t of value
  3. | `Unexpected of [ `End_of_input | `Lexeme of error_location * Jsonm.lexeme * string ]
]
val read_error_description : [< read_error ] -> string
val read_error_location : [< read_error ] -> error_location option
val from_channel_result : Stdlib.in_channel -> ([> {t}1 ], [> read_error ]) Stdlib.result
val from_string_result : string -> ([> {t}1 ], [> read_error ]) Stdlib.result
val value_from_channel_result : Stdlib.in_channel -> (value, [> read_value_error ]) Stdlib.result
val value_from_string_result : string -> (value, [> read_value_error ]) Stdlib.result
val value_from_src_result : Jsonm.src -> (value, [> read_value_error ]) Stdlib.result
val to_channel : ?minify:bool -> Stdlib.out_channel -> [ `A of value list | `O of (string * value) list ] -> unit
val to_buffer : ?minify:bool -> Stdlib.Buffer.t -> [ `A of value list | `O of (string * value) list ] -> unit
val to_string : ?minify:bool -> [ `A of value list | `O of (string * value) list ] -> string
val value_to_channel : ?minify:bool -> Stdlib.out_channel -> value -> unit
val value_to_buffer : ?minify:bool -> Stdlib.Buffer.t -> value -> unit
val value_to_string : ?minify:bool -> value -> string
val value_to_dst : ?minify:bool -> Jsonm.dst -> value -> unit
val unit : unit -> value
val bool : bool -> value
val string : string -> value
val strings : string list -> [> {t}1 ]
val int : int -> value
val int32 : int32 -> value
val int64 : int64 -> value
val float : float -> value
val list : ('a -> value) -> 'a list -> [> {t}1 ]
val option : ('a -> value) -> 'a option -> value
val dict : (string * value) list -> [> {t}1 ]
val pair : ('a -> value) -> ('b -> value) -> ('a * 'b) -> [> {t}1 ]
val triple : ('a -> value) -> ('b -> value) -> ('c -> value) -> ('a * 'b * 'c) -> [> {t}1 ]
exception Parse_error of value * string
val get_unit : value -> unit
val get_bool : value -> bool
val get_string : value -> string
val get_strings : value -> string list
val get_int : value -> int
val get_int32 : value -> int32
val get_int64 : value -> int64
val get_float : value -> float
val get_list : (value -> 'a) -> value -> 'a list
val get_option : (value -> 'a) -> value -> 'a option
val get_dict : value -> (string * value) list
val get_pair : (value -> 'a) -> (value -> 'b) -> value -> 'a * 'b
val get_triple : (value -> 'a) -> (value -> 'b) -> (value -> 'c) -> value -> 'a * 'b * 'c
val mem : value -> string list -> bool
val find : value -> string list -> value
val find_opt : value -> string list -> value option
val update : value -> string list -> value option -> value
val map : (value -> value option) -> value -> string list -> value
val encode_string : string -> value
val decode_string : value -> string option
val decode_string_exn : value -> string
val to_sexp : value -> Sexplib0.Sexp.t
val sexp_of_value : value -> Sexplib0.Sexp.t
val of_sexp : Sexplib0.Sexp.t -> value
val value_of_sexp : Sexplib0.Sexp.t -> value
val parse_error : value -> ('a, unit, string, 'b) Stdlib.format4 -> 'a
type t = [
  1. | `Null
  2. | `Bool of bool
  3. | `Float of float
  4. | `String of string
  5. | `A of t list
  6. | `O of (string * t) list
]
val __t_of_sexp__ : Sexplib0.Sexp.t -> t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val bin_shape_t : Core_kernel.Bin_prot.Shape.t
val bin_size_t : [> `A of 'a Core__.Import.list | `Bool of Core__.Import.bool | `Float of Core__.Import.float | `O of (Core__.Import.string * 'a) Core__.Import.list | `String of Core__.Import.string ] as 'a Bin_prot.Size.sizer
val bin_write_t : [< `A of 'a Core__.Import.list | `Bool of Core__.Import.bool | `Float of Core__.Import.float | `Null | `O of (Core__.Import.string * 'a) Core__.Import.list | `String of Core__.Import.string ] as 'a Bin_prot.Write.writer
val bin_writer_t : [< `A of 'a Core__.Import.list | `Bool of Core__.Import.bool | `Float of Core__.Import.float | `Null | `O of (Core__.Import.string * 'a) Core__.Import.list | `String of Core__.Import.string A Bool Float O String ] as 'a Core_kernel.Bin_prot.Type_class.writer
val __bin_read_t__ : Bin_prot.Common.buf -> pos_ref:Bin_prot.Common.pos_ref -> int -> [> `A of 'a Core__.Import.list | `Bool of Core__.Import.bool | `Float of Core__.Import.float | `Null | `O of (Core__.Import.string * 'a) Core__.Import.list | `String of Core__.Import.string ] as 'a
val bin_read_t : [> `A of 'a Core__.Import.list | `Bool of Core__.Import.bool | `Float of Core__.Import.float | `Null | `O of (Core__.Import.string * 'a) Core__.Import.list | `String of Core__.Import.string ] as 'a Bin_prot.Read.reader
val bin_reader_t : [> `A of 'a Core__.Import.list | `Bool of Core__.Import.bool | `Float of Core__.Import.float | `Null | `O of (Core__.Import.string * 'a) Core__.Import.list | `String of Core__.Import.string ] as 'a Core_kernel.Bin_prot.Type_class.reader
val bin_t : [ `A of 'a Core__.Import.list | `Bool of Core__.Import.bool | `Float of Core__.Import.float | `Null | `O of (Core__.Import.string * 'a) Core__.Import.list | `String of Core__.Import.string ] as 'a Core_kernel.Bin_prot.Type_class.t
val of_string : string -> [> {t}1 ]
val get_map : Ezjsonm.value -> Ezjsonm.value Core_kernel.String.Map.t
OCaml

Innovation. Community. Security.