package tezos-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Syntax module (with let and returns) for the TzResult monad (i.e., the TzTraced Result monad).

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 Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result
val let* : ('a, 'e) Stdlib.result -> ('a -> ('b, 'e) Stdlib.result) -> ('b, 'e) Stdlib.result
val and* : ('a, 'e Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result -> ('b, 'e Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result -> ('a * 'b, 'e Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result
val let+ : ('a, 'e) Stdlib.result -> ('a -> 'b) -> ('b, 'e) Stdlib.result
val and+ : ('a, 'e Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result -> ('b, 'e Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result -> ('a * 'b, 'e Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result
val join : (unit, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result list -> (unit, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result
val all : ('a, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result list -> ('a list, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result
val both : ('a, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result -> ('b, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result -> ('a * 'b, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) Stdlib.result
OCaml

Innovation. Community. Security.