package tezos-base

  1. Overview
  2. Docs
include module type of Tezos_error_monad.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 TzTrace.trace) result
val and* : ('a, 'error TzTrace.trace) result -> ('b, 'error TzTrace.trace) result -> ('a * 'b, 'error TzTrace.trace) result
val and+ : ('a, 'error TzTrace.trace) result -> ('b, 'error TzTrace.trace) result -> ('a * 'b, 'error TzTrace.trace) result
val tzjoin : (unit, 'error TzTrace.trace) result list -> (unit, 'error TzTrace.trace) result
val tzall : ('a, 'error TzTrace.trace) result list -> ('a list, 'error TzTrace.trace) result
val tzboth : ('a, 'error TzTrace.trace) result -> ('b, 'error TzTrace.trace) result -> ('a * 'b, 'error TzTrace.trace) result
OCaml

Innovation. Community. Security.