package tezos-protocol-017-PtNairob

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-017-PtNairob.raw/Tezos_raw_protocol_017_PtNairob/Gas_monad/Syntax/index.html

Module Gas_monad.SyntaxSource

Syntax module for the Gas_monad. This is intended to be opened locally in functions. Within the scope of this module, the code can include binding operators, leading to a let-style syntax. Similar to Lwt_result_syntax and other syntax modules.

Sourceval return : 'a -> ('a, 'trace) t

return x returns a value in the gas-monad.

Sourceval return_unit : (unit, 'trace) t

return_unit is return () .

Sourceval return_none : ('a option, 'trace) t

return_none is return None .

Sourceval return_some : 'a -> ('a option, 'trace) t

return_some x is return (Some x) .

Sourceval return_nil : ('a list, 'trace) t

return_nil is return [] .

Sourceval return_true : (bool, 'trace) t

return_true is return true .

Sourceval return_false : (bool, 'trace) t

return_false is return false .

Sourceval fail : 'trace -> ('a, 'trace) t

fail e is return (Error e) .

Sourceval (let*) : ('a, 'trace) t -> ('a -> ('b, 'trace) t) -> ('b, 'trace) t

let* is a binding operator alias for bind.

Sourceval (let+) : ('a, 'trace) t -> ('a -> 'b) -> ('b, 'trace) t

let+ is a binding operator alias for map.

Sourceval (let*?) : ('a, 'trace) Tezos_protocol_environment_017_PtNairob.Pervasives.result -> ('a -> ('b, 'trace) t) -> ('b, 'trace) t

let*? is for binding the value from result-only expressions into the gas-monad.

OCaml

Innovation. Community. Security.