Module Eager_deferred.Use

Intended usage is to open Eager_deferred.Use to shadow operations from the non-eager world and rebind them to their eager counterparts.

module Deferred : sig ... end
include Core_kernel.Monad.Infix with type 'a t := 'a t
type 'a t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t

t >>= f returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t to yield a value v, and then runs the computation returned by f v.

val (>>|) : 'a t -> ('a -> 'b) -> 'b t

t >>| f is t >>= (fun a -> return (f a)).

include module type of Deferred.Let_syntax
val return : 'a -> 'a Deferred.t
include Base__.Monad_intf.Infix with type 'a t := 'a Deferred.t
type 'a t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t

t >>= f returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t to yield a value v, and then runs the computation returned by f v.

val (>>|) : 'a t -> ('a -> 'b) -> 'b t

t >>| f is t >>= (fun a -> return (f a)).

module Let_syntax = Deferred.Let_syntax.Let_syntax
val upon : 'a t -> ('a -> unit) -> unit
val (>>>) : 'a t -> ('a -> unit) -> unit
val (>>=?) : ('a'e) Core_kernel.Result.t t -> ('a -> ('b'e) Core_kernel.Result.t t) -> ('b'e) Core_kernel.Result.t t
val (>>|?) : ('a'e) Core_kernel.Result.t t -> ('a -> 'b) -> ('b'e) Core_kernel.Result.t t