package tezos-error-monad

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

Innovation. Community. Security.