package tezos-error-monad

  1. Overview
  2. Docs
val return : 'a -> ('a, 'error) Stdlib.result
val return_unit : (unit, 'error) Stdlib.result
val return_none : ('a option, 'error) Stdlib.result
val return_some : 'a -> ('a option, 'error) Stdlib.result
val return_nil : ('a list, 'error) Stdlib.result
val return_true : (bool, 'error) Stdlib.result
val return_false : (bool, 'error) Stdlib.result
val fail : 'error -> ('a, 'error TzTrace.trace) Stdlib.result
val let* : ('a, 'e) Stdlib.result -> ('a -> ('b, 'e) Stdlib.result) -> ('b, 'e) Stdlib.result
val and* : ('a, 'e TzTrace.trace) Stdlib.result -> ('b, 'e TzTrace.trace) Stdlib.result -> ('a * 'b, 'e TzTrace.trace) Stdlib.result
val let+ : ('a, 'e) Stdlib.result -> ('a -> 'b) -> ('b, 'e) Stdlib.result
val and+ : ('a, 'e TzTrace.trace) Stdlib.result -> ('b, 'e TzTrace.trace) Stdlib.result -> ('a * 'b, 'e TzTrace.trace) Stdlib.result
val join : (unit, 'error TzTrace.trace) Stdlib.result list -> (unit, 'error TzTrace.trace) Stdlib.result
val all : ('a, 'error TzTrace.trace) Stdlib.result list -> ('a list, 'error TzTrace.trace) Stdlib.result
val both : ('a, 'error TzTrace.trace) Stdlib.result -> ('b, 'error TzTrace.trace) Stdlib.result -> ('a * 'b, 'error TzTrace.trace) Stdlib.result
OCaml

Innovation. Community. Security.