Result.ErrorThe Error monad.
The error monad is a concretization of the result monad with the error type fixed to Error.t, aka Or_error Monad
module type S = sig ... endmodule Make
(M : Monad) :
S
with type 'a t := 'a T(M).t
and type 'a m := 'a T(M).m
and type 'a e := 'a T(M).e
and type err := Core_kernel.Error.tMake(M) wraps M into the Error monad.
include S
with type 'a t = 'a Core_kernel.Or_error.t
and type 'a m = 'a
and type 'a e = 'a Core_kernel.Or_error.t
and type err := Core_kernel.Error.tinclude S
with type 'a t = 'a Core_kernel.Or_error.t
with type 'a m = 'a
with type 'a e = 'a Core_kernel.Or_error.t
with type err := Core_kernel.Error.tinclude Monad with type 'a t := 'a tsequence xs computes a sequence of computations xs in the left to right order.
module Fn : sig ... endVarious function combinators lifted into the Kleisli category.
module Pair : sig ... endThe pair interface lifted into the monad.
module Triple : sig ... endThe triple interface lifted into a monad.
module Lift : sig ... endLifts functions into the monad.
module Exn : sig ... endInteracting between monads and language exceptions
module Collection : sig ... endLifts collection interface into the monad.
module List : Collection.S with type 'a t := 'a listThe Monad.Collection.S interface for lists
module Seq : Collection.S with type 'a t := 'a Core_kernel.Sequence.tThe Monad.Collection.S interface for sequences
include Syntax.Let.S with type 'a t := 'a tinclude Core_kernel.Monad.S with type 'a t := 'a tmodule Monad_infix : sig ... endval return : 'a -> 'a tmodule Let_syntax : sig ... endmodule Let : Syntax.Let.S with type 'a t := 'a tMonadic operators, see Monad.Syntax.S for more.
Monadic operators, see Monad.Syntax.S for more.
val failf :
('a, Stdlib.Format.formatter, unit, unit -> 'b t) Core_kernel.format4 ->
'afailf "<fmt>" <args> () constructs an error message using the specified format description and returns a computation that will result in the constructed error.