Advent of Haskell 2020 Day 11: The `retry` package.

Wander Hillen
Fri, 11 Dec 2020 00:00:00 UT

Pure computations can either succeed or fail; the result will not be different a second time around. In a distributed setting however, retrying a failed request can be a valid option. The `retry` package can wrap arbitrary monadic computations and retry them until they succeed with a variety of retry policies. This can be very helpful to retry things like HTTP or RPC requests where the remote server may have been temporarily overloaded.