package tezos-lwt-result-stdlib
Tezos: error-aware stdlib replacement
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-v10.2.tar.bz2
sha256=6b33e0549574c89a63538c94ce5555dd141e3c0fb5d934abff07d702fa3244d2
sha512=681a197baabec6e2f806871d43490382243207518f8fcf932741cd314d8717e46db2b6a5adc222f8726083a5dd911083b4931b7e878ab815f8f1a32763d1bf93
doc/traced_structs/Traced_structs/List/Make/argument-1-Monad/index.html
Parameter Make.Monad
include Bare_sigs.Monad.S
result monad
lwt-result combined monad
Mixing operators
All operators follow this naming convention:
- the first character is
>
- the second character is
>
forbind
and|
formap
- the next character is
=
for Lwt or?
for Error - the next character (if present) is
=
for Lwt or?
for Error, it is only used for operator that are within both monads.
preallocated in-monad values
additional preallocated in-monad values
this is for backwards compatibility and for similarity with Lwt
joins
'error trace
is intended to be substituted by a type provided by a Trace
module (with type 'error trace := 'error Trace.trace
)
val error_trace : 'error -> ('a, 'error trace) Stdlib.result
error_trace e
is Error (Trace.make e)
where Trace
is the Traced_sigs.Trace
module that provides the trace type and functions.
val fail_trace : 'error -> ('a, 'error trace) Stdlib.result Lwt.t
fail_trace e
is Lwt.return (Error (Trace.make e))
where Trace
is the Traced_sigs.Trace
module that provides the trace type and functions.
join
, all
, and both
all return traces rather than lists of errors. This applies to both result-only and Lwt-result monads.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>