Gas_monad.SyntaxSyntax 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.
val return : 'a -> ('a, 'trace) treturn x returns a value in the gas-monad.
val return_unit : (unit, 'trace) treturn_unit is return () .
val return_none : ('a option, 'trace) treturn_none is return None .
val return_some : 'a -> ('a option, 'trace) treturn_some x is return (Some x) .
val return_nil : ('a list, 'trace) treturn_nil is return [] .
val return_true : (bool, 'trace) treturn_true is return true .
val return_false : (bool, 'trace) treturn_false is return false .
val fail : 'trace -> ('a, 'trace) tfail e is return (Error e) .
let* is a binding operator alias for bind.
val let*? :
('a, 'trace) Mavryk_protocol_environment_001_PtAtLas.Pervasives.result ->
('a -> ('b, 'trace) t) ->
('b, 'trace) tlet*? is for binding the value from result-only expressions into the gas-monad.