Hoogle Search

Within LTS Haskell 24.39 (ghc-9.10.3)

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

  1. assertBool :: HasCallStack => String -> Bool -> Assertion

    tasty-hunit Test.Tasty.HUnit

    Asserts that the specified condition holds.

  2. assertBool :: HasCallStack => String -> Bool -> Assertion

    HUnit Test.HUnit.Base

    Asserts that the specified condition holds.

  3. data SBool (b :: Bool)

    gogol-core Gogol.Prelude

    No documentation available.

  4. class SBoolI (b :: Bool)

    gogol-core Gogol.Prelude

    No documentation available.

  5. sbool :: SBoolI b => SBool b

    gogol-core Gogol.Prelude

    No documentation available.

  6. fromBool :: Num a => Bool -> a

    unliftio UnliftIO.Foreign

    Convert a Haskell Bool to its numeric representation

  7. toBool :: (Eq a, Num a) => a -> Bool

    unliftio UnliftIO.Foreign

    Convert a Boolean in numeric representation to a Haskell value

  8. 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 "")
    

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

    extra Control.Exception.Extra

    Like catchBool but for handle.

  10. 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.

Page 74 of many | Previous | Next