Module Result.Monad

The result type encapsulated in a module which satisfies the monadic interface.

Parameters

module E : Interfaces.ANY

Signature

type 'a t = ('a, E.t) Stdlib.result
val return : 'a -> 'a t
val fail : E.t -> 'a t
val to_option : 'a t -> 'a option
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val let* : 'a t -> ('a -> 'b t) -> 'b t