package interface-prime

  1. Overview
  2. Docs

Parameters

module M : Monad.S
module E : ErrorType

Signature

include Monad.S with type +'a t = ('a, E.t) result M.t
include Monad.S_base with type +'a t = ('a, E.t) result M.t
type +'a t = ('a, E.t) result M.t
val return : 'a -> 'a t
val bind : 'a t -> ('a -> 'b t) -> 'b t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val (=<<) : ('a -> 'b t) -> 'a t -> 'b t
val (>>) : 'a t -> 'b t Lazy.t -> 'b t
val fmap : ('a -> 'b) -> 'a t -> 'b t
val (>|=) : 'a t -> ('a -> 'b) -> 'b t
val seq : 'a t list -> 'a list t
type +'a u = 'a M.t
module E = E
val fail : E.t -> 'a t
val lift : 'a u -> 'a t
val lift_opt : 'a option -> 'a t -> 'a t
OCaml

Innovation. Community. Security.