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]
Versions 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.3.0.0, 0.4, 0.5, 0.5.1, 0.6, 0.7, 0.7.0.1, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.4.1, 0.7.4.2, 0.7.4.3, 0.7.5.0, 0.7.5.1, 0.7.6.0, 0.7.6.1, 0.7.6.2, 0.7.6.3, 0.7.7.0
Change log changelog.md
Dependencies base (>=4.6 && <5), data-default-class, exceptions (>=0.5 && <0.11), ghc-prim (<0.6), random (>=1 && <1.2), transformers (<0.7) [details]
License BSD-3-Clause
Copyright Ozgun Ataman, Soostone Inc
Author Ozgun Ataman
Maintainer ozgun.ataman@soostone.com
Category Control
Home page http://github.com/Soostone/retry
Source repo head: git clone git://github.com/Soostone/retry.git
Uploaded by MichaelXavier at Mon Aug 27 23:36:50 UTC 2018
Distributions Arch:0.7.7.0, Debian:0.7.0.1, LTSHaskell:0.7.7.0, NixOS:0.7.7.0, Stackage:0.7.7.0, openSUSE:0.7.7.0
Downloads 24570 total (345 in the last 30 days)
Rating 2.5 (votes: 4) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-08-27 [all 1 reports]
Hackage Matrix CI

Modules

[Index] [Quick Jump]

Flags

NameDescriptionDefaultType
lib-werrorDisabledManual

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for retry-0.7.7.0

[back to package description]

README Build Status Coverage Status

retry - combinators for monadic actions that may fail

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/Soostone/retry/blob/master/changelog.md.

Author

Ozgun Ataman, Soostone Inc

Contributors

Contributors, please list yourself here.

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