HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulecabal-install-solver-3.18.1.0Haskell2010

Distribution.Solver.Modular.RetryLog

  • 1 type
  • 8 values
newtypenewtype RetryLog step fail done
#

Progress as a difference list that allows efficient appends at failures.

valuemapFailure
  1. :: fail1 -> fail2
  2. -> RetryLog step fail1 done
  3. -> RetryLog step fail2 done
#

O(1). Apply a function to the failure value in a log.

valueretry
  1. :: RetryLog step fail1 done
  2. -> fail1 -> RetryLog step fail2 done
  3. -> RetryLog step fail2 done
#

O(1). If the first log leads to failure, continue with the second.

valuefailWith :: step -> fail -> RetryLog step fail done
#

O(1). Create a log with one message before a failure.

valuesucceedWith :: step -> done -> RetryLog step fail done
#

O(1). Create a log with one message before a success.