Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
recoverAll :: (MonadIO m, MonadMask m) => RetryPolicyM m -> (RetryStatus -> m a) -> m aretry Control.Retry Retry ALL exceptions that may be raised. To be used with caution; this matches the exception on SomeException. Note that this handler explicitly does not handle AsyncException nor SomeAsyncException (for versions of base >= 4.7). It is not a good idea to catch async exceptions as it can result in hanging threads and programs. Note that if you just throw an exception to this thread that does not descend from SomeException, recoverAll will not catch it. See how the action below is run once and retried 5 more times before finally failing for good:
>>> let f _ = putStrLn "Running action" >> error "this is an error" >>> recoverAll retryPolicyDefault f Running action Running action Running action Running action Running action Running action *** Exception: this is an error
-
retry Control.Retry A variant of recoverAll that allows specifying the initial RetryStatus so that a recovering operation may pick up where it left off in regards to its retry policy.
recoverAll :: MonadUnliftIO m => RetryPolicyM m -> (RetryStatus -> m a) -> m aretry UnliftIO.Retry Retry ALL exceptions that may be raised. To be used with caution; this matches the exception on SomeException. Note that this handler explicitly does not handle AsyncException nor SomeAsyncException (for versions of base >= 4.7). It is not a good idea to catch async exceptions as it can result in hanging threads and programs. Note that if you just throw an exception to this thread that does not descend from SomeException, recoverAll will not catch it. See how the action below is run once and retried 5 more times before finally failing for good:
>>> let f _ = putStrLn "Running action" >> error "this is an error" >>> recoverAll retryPolicyDefault f Running action Running action Running action Running action Running action Running action *** Exception: this is an error
resumeRecoverAll :: MonadUnliftIO m => RetryStatus -> RetryPolicyM m -> (RetryStatus -> m a) -> m aretry UnliftIO.Retry A variant of recoverAll that allows specifying the initial RetryStatus so that a recovering operation may pick up where it left off in regards to its retry policy.
-
Cabal-syntax Distribution.Compat.Semigroup No documentation available.
module Distribution.
InstalledPackageInfo This is the information about an installed package that is communicated to the ghc-pkg program in order to register a package. ghc-pkg now consumes this package format (as of version 6.4). This is specific to GHC at the moment. The .cabal file format is for describing a package that is not yet installed. It has a lot of flexibility, like conditionals and dependency ranges. As such, that format is not at all suitable for describing a package that has already been built and installed. By the time we get to that stage, we have resolved all conditionals and resolved dependency version constraints to exact versions of dependent packages. So, this module defines the InstalledPackageInfo data structure that contains all the info we keep about an installed package. There is a parser and pretty printer. The textual format is rather simpler than the .cabal format: there are no sections, for example.
-
Cabal-syntax Distribution.InstalledPackageInfo No documentation available.
-
Cabal-syntax Distribution.InstalledPackageInfo No documentation available.
emptyInstalledPackageInfo :: InstalledPackageInfoCabal-syntax Distribution.InstalledPackageInfo No documentation available.
installedComponentId :: InstalledPackageInfo -> ComponentIdCabal-syntax Distribution.InstalledPackageInfo No documentation available.