package tezos-protocol-015-PtLimaPt

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/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_015_PtLimaPt.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.