retry: Retry combinators for monadic actions that may fail

[ bsd3, control, library ] [ Propose Tags ]

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.

[Skip to Readme]


[Index] [Quick Jump]


Manual Flags


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,, 0.4, 0.5, 0.5.1, 0.6, 0.7,, 0.7.1, 0.7.2, 0.7.3, 0.7.4,,,,,,,,,,,,,,,,,,,,,,
Change log
Dependencies base (>=4.8 && <5), exceptions (>=0.5), ghc-prim, mtl, mtl-compat, random (>=1), transformers, unliftio-core (>= [details]
License BSD-3-Clause
Copyright Ozgun Ataman, Soostone Inc
Author Ozgun Ataman
Category Control
Home page
Source repo head: git clone git://
Uploaded by MichaelXavier at 2023-04-17T20:14:22Z
Distributions Arch:, Debian:, Fedora:, LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 65 direct, 122 indirect [details]
Downloads 65969 total (318 in the last 30 days)
Rating 2.5 (votes: 4) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-04-17 [all 1 reports]

Readme for retry-

[back to package description]

README Build Status Coverage Status

retry - combinators for monadic actions that may fail


Monadic action combinators that add delayed-retry functionality, potentially with exponential-backoff, to arbitrary actions.

The main purpose of this package is to make it easy to work reliably with IO and similar actions that often fail. Common examples are database queries and large file uploads.


Please see haddocks for documentation.




Ozgun Ataman, Soostone Inc


Contributors, please list yourself here.

  • Mitsutoshi Aoe (@maoe)
  • John Wiegley
  • Michael Snoyman
  • Michael Xavier
  • Toralf Wittner
  • Marco Zocca (@ocramz)