Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. RetryStatus :: Int -> Int -> !Maybe Int -> RetryStatus

    retry Control.Retry

    No documentation available.

  2. data RetryAction

    retry UnliftIO.Retry

    How to handle a failed action.

  3. type RetryPolicy = forall (m :: Type -> Type) . Monad m => RetryPolicyM m

    retry UnliftIO.Retry

    Simplified RetryPolicyM without any use of the monadic context in determining policy. Mostly maintains backwards compatitibility with type signatures pre-0.7.

  4. newtype RetryPolicyM (m :: Type -> Type)

    retry UnliftIO.Retry

    A RetryPolicyM is a function that takes an RetryStatus and possibly returns a delay in microseconds. Iteration numbers start at zero and increase by one on each retry. A *Nothing* return value from the function implies we have reached the retry limit. Please note that RetryPolicyM is a Monoid. You can collapse multiple strategies into one using mappend or <>. The semantics of this combination are as follows:

    1. If either policy returns Nothing, the combined policy returns Nothing. This can be used to inhibit after a number of retries, for example.
    2. If both policies return a delay, the larger delay will be used. This is quite natural when combining multiple policies to achieve a certain effect.
    Example: One can easily define an exponential backoff policy with a limited number of retries:
    > limitedBackoff = exponentialBackoff 50000 <> limitRetries 5
    
    Naturally, mempty will retry immediately (delay 0) for an unlimited number of retries, forming the identity for the Monoid. The default retry policy retryPolicyDefault implements a constant 50ms delay, up to 5 times:
    > retryPolicyDefault = constantDelay 50000 <> limitRetries 5
    
    For anything more complex, just define your own RetryPolicyM:
    > myPolicy = retryPolicy $ \ rs -> if rsIterNumber rs > 10 then Just 1000 else Just 10000
    
    Since 0.7.

  5. RetryPolicyM :: (RetryStatus -> m (Maybe Int)) -> RetryPolicyM (m :: Type -> Type)

    retry UnliftIO.Retry

    No documentation available.

  6. data RetryStatus

    retry UnliftIO.Retry

    Datatype with stats about retries made thus far.

  7. RetryStatus :: Int -> Int -> !Maybe Int -> RetryStatus

    retry UnliftIO.Retry

    No documentation available.

  8. RetryOp :: PrimOp

    ghc-lib-parser GHC.Builtin.PrimOps

    No documentation available.

  9. RetryLimitExceeded :: DNSError

    dns Network.DNS.Types

    The number of retries for the request was exceeded.

  10. module Distribution.Solver.Modular.RetryLog

    No documentation available.

Page 10 of many | Previous | Next