HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecabal-install-solver-3.12.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.