package octez-libs

  1. Overview
  2. Docs
include module type of TzLwtreslib.Monad.Result_syntax
val return : 'a -> ('a, 'e) result
val return_unit : (unit, 'e) result
val return_none : ('a option, 'e) result
val return_some : 'a -> ('a option, 'e) result
val return_nil : ('a list, 'e) result
val return_true : (bool, 'e) result
val return_false : (bool, 'e) result
val fail : 'e -> ('a, 'e) result
val let* : ('a, 'e) result -> ('a -> ('b, 'e) result) -> ('b, 'e) result
val let+ : ('a, 'e) result -> ('a -> 'b) -> ('b, 'e) result
val join : (unit, 'e) result list -> (unit, 'e list) result
val all : ('a, 'e) result list -> ('a list, 'e list) result
val both : ('a, 'e) result -> ('b, 'e) result -> ('a * 'b, 'e list) result
val tzfail : 'error -> ('a, 'error Trace.trace) result
val and* : ('a, 'error Trace.trace) result -> ('b, 'error Trace.trace) result -> ('a * 'b, 'error Trace.trace) result
val and+ : ('a, 'error Trace.trace) result -> ('b, 'error Trace.trace) result -> ('a * 'b, 'error Trace.trace) result
val tzjoin : (unit, 'error Trace.trace) result list -> (unit, 'error Trace.trace) result
val tzall : ('a, 'error Trace.trace) result list -> ('a list, 'error Trace.trace) result
val tzboth : ('a, 'error Trace.trace) result -> ('b, 'error Trace.trace) result -> ('a * 'b, 'error Trace.trace) result
OCaml

Innovation. Community. Security.