package goblint

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Yaml.Util end
exception Value_error of string
val keys : Yaml.value -> string list Yaml.res
val keys_exn : Yaml.value -> string list
val values : Yaml.value -> Yaml.value list Yaml.res
val values_exn : Yaml.value -> Yaml.value list
val combine : Yaml.value -> Yaml.value -> Yaml.value Yaml.res
val combine_exn : Yaml.value -> Yaml.value -> Yaml.value
val find_exn : string -> Yaml.value -> Yaml.value option
val map : (Yaml.value -> Yaml.value) -> Yaml.value -> Yaml.value Yaml.res
val map_exn : (Yaml.value -> Yaml.value) -> Yaml.value -> Yaml.value
val filter : (Yaml.value -> bool) -> Yaml.value -> Yaml.value Yaml.res
val filter_exn : (Yaml.value -> bool) -> Yaml.value -> Yaml.value
val to_string : Yaml.value -> string Yaml.res
val to_string_exn : Yaml.value -> string
val to_bool : Yaml.value -> bool Yaml.res
val to_bool_exn : Yaml.value -> bool
val to_float : Yaml.value -> float Yaml.res
val to_float_exn : Yaml.value -> float
val string : string -> Yaml.value
val bool : bool -> Yaml.value
val float : float -> Yaml.value
val obj : (string * Yaml.value) list -> Yaml.value
include module type of struct include GobResult.Syntax end

Open this to use applicative functor/monad syntax for result.

val let+ : ('a, 'b) Stdlib.result -> ('a -> 'c) -> ('c, 'b) Stdlib.result
val and+ : ('a, 'b) Stdlib.result -> ('c, 'b) Stdlib.result -> ('a * 'c, 'b) Stdlib.result
val let* : ('a, 'b) Stdlib.result -> ('a -> ('c, 'b) Stdlib.result) -> ('c, 'b) Stdlib.result
val and* : ('a, 'b) Stdlib.result -> ('c, 'b) Stdlib.result -> ('a * 'c, 'b) Stdlib.result
val (>>=) : ('a, 'b) Stdlib.result -> ('a -> ('c, 'b) Stdlib.result) -> ('c, 'b) Stdlib.result
val option_map : ('a -> ('b, 'e) Stdlib.result) -> 'a option -> ('b option, 'e) Stdlib.result
val list_map : ('a -> ('b, 'e) Stdlib.result) -> 'a list -> ('b list, 'e) Stdlib.result
val find : string -> Yaml.value -> (Yaml.value, [> `Msg of string ]) Stdlib.result
val to_int : Yaml.value -> (int, [ `Msg of string ]) Stdlib.result
val list : [> `A of 'a ] -> ('a, [> `Msg of string ]) Stdlib.result
val entries : [> `O of 'a ] -> ('a, [> `Msg of string ]) Stdlib.result
OCaml

Innovation. Community. Security.