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) result
val return_unit : (unit, 'error) result
val return_none : ('a option, 'error) result
val return_some : 'a -> ('a option, 'error) result
val return_nil : ('a list, 'error) result
val return_true : (bool, 'error) result
val return_false : (bool, 'error) result
val fail : 'error -> ('a, 'error Tezos_error_monad.TzLwtreslib.Monad.trace) result
val let* : ('a, 'e) result -> ('a -> ('b, 'e) result) -> ('b, 'e) result
val let+ : ('a, 'e) result -> ('a -> 'b) -> ('b, 'e) result
OCaml

Innovation. Community. Security.