Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

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

  1. catchBool :: Exception e => (e -> Bool) -> IO a -> (e -> IO a) -> IO a

    extra Control.Exception.Extra

    Catch an exception if the predicate passes, then call the handler with the original exception. As an example:

    readFileExists x == catchBool isDoesNotExistError (readFile "myfile") (const $ pure "")
    

  2. handleBool :: Exception e => (e -> Bool) -> (e -> IO a) -> IO a -> IO a

    extra Control.Exception.Extra

    Like catchBool but for handle.

  3. retryBool :: Exception e => (e -> Bool) -> Int -> IO a -> IO a

    extra Control.Exception.Extra

    Retry an operation at most n times (n must be positive), while the exception value and type match a predicate. If the operation fails the nth time it will throw that final exception.

  4. tryBool :: Exception e => (e -> Bool) -> IO a -> IO (Either e a)

    extra Control.Exception.Extra

    Like catchBool but for try.

  5. catchBool :: Exception e => (e -> Bool) -> IO a -> (e -> IO a) -> IO a

    extra Extra

    Catch an exception if the predicate passes, then call the handler with the original exception. As an example:

    readFileExists x == catchBool isDoesNotExistError (readFile "myfile") (const $ pure "")
    

  6. handleBool :: Exception e => (e -> Bool) -> (e -> IO a) -> IO a -> IO a

    extra Extra

    Like catchBool but for handle.

  7. retryBool :: Exception e => (e -> Bool) -> Int -> IO a -> IO a

    extra Extra

    Retry an operation at most n times (n must be positive), while the exception value and type match a predicate. If the operation fails the nth time it will throw that final exception.

  8. tryBool :: Exception e => (e -> Bool) -> IO a -> IO (Either e a)

    extra Extra

    Like catchBool but for try.

  9. data SBool (b :: Bool)

    servant Servant.API

    No documentation available.

  10. class SBoolI (b :: Bool)

    servant Servant.API

    No documentation available.

Page 72 of many | Previous | Next