Retry combinators for monadic actions that may fail

Version on this page:0.6@rev:1
LTS Haskell 17.10:
Stackage Nightly 2021-05-09:
Latest on Hackage:

See all snapshots retry appears in

BSD-3-Clause licensed by Ozgun Ataman
This version can be pinned in stack with:retry-0.6@sha256:08f3ff261b1f52787e49e0a6bb585db0b0820393715eb510ab8a937173076b42,1862

Module documentation for 0.6

This package exposes combinators that can wrap arbitrary monadic actions. They run the action and potentially retry running it with some configurable delay for a configurable number of times. The purpose is to make it easier to work with IO and especially network IO actions that often experience temporary failure and warrant retrying of the original action. For example, a database query may time out for a while, in which case we should hang back for a bit and retry the query instead of simply raising an exception.