Module Core_kernel.Or_error
This module extends Base.Or_error with bin_io.
include Bin_prot.Binable.S1 with type 'a t := 'a t
val bin_shape_t : Bin_prot.Shape.t -> Bin_prot.Shape.tval bin_size_t : ('a, 'a t) Bin_prot.Size.sizer1val bin_write_t : ('a, 'a t) Bin_prot.Write.writer1val bin_read_t : ('a, 'a t) Bin_prot.Read.reader1val __bin_read_t__ : ('a, int -> 'a t) Bin_prot.Read.reader1val bin_writer_t : ('a, 'a t) Bin_prot.Type_class.S1.writerval bin_reader_t : ('a, 'a t) Bin_prot.Type_class.S1.readerval bin_t : ('a, 'a t) Bin_prot.Type_class.S1.t
include module type of sig ... end with type 'a t := 'a t
type 'a t= ('a, Base.Error.t) Base.Result.t
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> intval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> boolval hash_fold_t : (Base.Hash.state -> 'a -> Base.Hash.state) -> Base.Hash.state -> 'a t -> Base.Hash.stateval t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a tval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.tval both : 'a t -> 'b t -> ('a * 'b) tval (<*>) : ('a -> 'b) t -> 'a t -> 'b tval (<*) : 'a t -> unit t -> 'a tval (*>) : unit t -> 'a t -> 'a tval apply : ('a -> 'b) t -> 'a t -> 'b tval map2 : 'a t -> 'b t -> f:('a -> 'b -> 'c) -> 'c tval map3 : 'a t -> 'b t -> 'c t -> f:('a -> 'b -> 'c -> 'd) -> 'd t
val invariant : 'a Base__.Invariant_intf.inv -> 'a t Base__.Invariant_intf.invval (>>=) : 'a t -> ('a -> 'b t) -> 'b tval (>>|) : 'a t -> ('a -> 'b) -> 'b t
module Monad_infix = Base__Or_error.Monad_infixval bind : 'a t -> f:('a -> 'b t) -> 'b tval return : 'a -> 'a tval join : 'a t t -> 'a tval ignore_m : 'a t -> unit tval all : 'a t list -> 'a list tval all_unit : unit t list -> unit t
module Let_syntax = Base__Or_error.Let_syntaxval is_ok : 'a t -> boolval is_error : 'a t -> boolval try_with : ?backtrace:bool -> (unit -> 'a) -> 'a tval try_with_join : ?backtrace:bool -> (unit -> 'a t) -> 'a tval ok : 'ok t -> 'ok optionval ok_exn : 'a t -> 'aval of_exn : ?backtrace:[ `Get | `This of string ] -> exn -> 'a tval of_exn_result : ?backtrace:[ `Get | `This of string ] -> ('a, exn) Base.Result.t -> 'a tval error : ?strict:unit -> string -> 'a -> ('a -> Base.Sexp.t) -> 'b tval error_s : Base.Sexp.t -> 'a tval error_string : string -> 'a tval errorf : ('a, unit, string, 'b t) Stdlib.format4 -> 'aval tag : 'a t -> tag:string -> 'a tval tag_s : 'a t -> tag:Base.Sexp.t -> 'a tval tag_arg : 'a t -> string -> 'b -> ('b -> Base.Sexp.t) -> 'a tval unimplemented : string -> 'a tval map : 'a t -> f:('a -> 'b) -> 'b tval iter : 'a t -> f:('a -> unit) -> unitval iter_error : 'a t -> f:(Base.Error.t -> unit) -> unitval combine_errors : 'a t list -> 'a list tval combine_errors_unit : unit t list -> unit tval filter_ok_at_least_one : 'a t list -> 'a list tval find_ok : 'a t list -> 'a tval find_map_ok : 'a list -> f:('a -> 'b t) -> 'b t
module Expect_test_config : Expect_test_config_types.S with type 'a IO_flush.t = 'a t with type 'a IO_run.t = 'a tmodule Stable : sig ... end