Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Lwt_result.Syntax

module Syntax : sig..end

Let syntax


Monadic syntax

val ( let* ) : 
  ('a, 'e) Lwt_result.t ->
  ('a -> ('b, 'e) Lwt_result.t) -> ('b, 'e) Lwt_result.t

Syntax for Lwt_result.bind.

val ( and* ) : 
  ('a, 'e) Lwt_result.t ->
  ('b, 'e) Lwt_result.t -> ('a * 'b, 'e) Lwt_result.t

Syntax for Lwt_result.both.

Applicative syntax

val let+ : ('a, 'e) Lwt_result.t -> ('a -> 'b) -> ('b, 'e) Lwt_result.t

Syntax for Lwt_result.map.

val and+ : 
  ('a, 'e) Lwt_result.t ->
  ('b, 'e) Lwt_result.t -> ('a * 'b, 'e) Lwt_result.t

Syntax for Lwt_result.both.