Module Status.Syntax

Binding operators.

This allows to inject bare status function results into the ('a, t) result error monad. It binds on Bytes_crpyto__psa.success and otherwise Error with the error code.

val (let*) : ('a, 'e) Stdlib.result -> ('a -> ('b, 'e) Stdlib.result) -> ('b, 'e) Stdlib.result

This is the usual Result.bind

val (let+) : t -> (unit -> ('b, t) Stdlib.result) -> ('b, t) Stdlib.result

This binds on Bytes_crpyto__psa.success and otherwise Error _ with the error code.