retry-io-classes: Retry combinators for monadic actions that may fail (io-classes port)

[ bsd3, control, library ] [ Propose Tags ] [ Report a vulnerability ]

This is a port of original retry package compatible with io-classes.

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]

Modules

[Index] [Quick Jump]

Flags

Manual Flags

NameDescriptionDefault
lib-werrorDisabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.8 && <5), ghc-prim, io-classes (>=1.10), mtl, random (>=1), transformers [details]
License BSD-3-Clause
Copyright Ozgun Ataman, Soostone Inc
Author Ozgun Ataman
Maintainer srk@48.io
Uploaded by srk at 2026-06-06T13:37:38Z
Category Control
Home page http://github.com/sorki/retry-io-classes
Source repo head: git clone https://github.com/sorki/retry-io-classes.git
Distributions
Downloads 1 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-06-06 [all 1 reports]

Readme for retry-io-classes-0.1.0.0

[back to package description]

README

This is a port of original retry package compatible with io-classes.

retry - combinators for monadic actions that may fail (io-classes port)

About

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.

Documentation

Please see haddocks for documentation.

Changes

See https://github.com/sorki/retry-io-classes/blob/master/CHANGELOG.md.

Author

Ozgun Ataman, Soostone Inc

Contributors

Contributors, please list yourself here.

  • Mitsutoshi Aoe (@maoe)
  • John Wiegley
  • Michael Snoyman
  • Michael Xavier
  • Toralf Wittner
  • Marco Zocca (@ocramz)
  • @sorki (io-classes port)