Creates a retriable optical which consists three functions:
triable
strategy
set
B
S
T
ok S -+--->[ triable ]-+-------> A | ^ | | retry | | err | | V | [ strategy ] | | +--------|-------+ | exit | | V T <---------+----[ set ]<- B Copy
ok S -+--->[ triable ]-+-------> A | ^ | | retry | | err | | V | [ strategy ] | | +--------|-------+ | exit | | V T <---------+----[ set ]<- B
A Monad instance for M.
Monad
M
The retriable optical.
Creates a retriable optical which consists three functions:
triable: An operation that may fail.strategy: Failure control strategy, which decides the operation should retry or exit.set: A function that storesBintoSand producesT.