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. safeReadBool :: String -> Maybe Bool

    tasty Test.Tasty.Options

    Parse a Bool case-insensitively.

  2. withBool :: String -> (Bool -> Parser a) -> Value -> Parser a

    aeson Data.Aeson

    withBool expected f value applies f to the Bool when value is a Boolean and fails otherwise.

    Error message example

    withBool "MyType" f (String "oops")
    -- Error: "parsing MyType failed, expected Boolean, but encountered String"
    

  3. withBool :: String -> (Bool -> Parser a) -> Value -> Parser a

    aeson Data.Aeson.Types

    withBool expected f value applies f to the Bool when value is a Boolean and fails otherwise.

    Error message example

    withBool "MyType" f (String "oops")
    -- Error: "parsing MyType failed, expected Boolean, but encountered String"
    

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

    tasty-hunit Test.Tasty.HUnit

    Asserts that the specified condition holds.

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

    HUnit Test.HUnit.Base

    Asserts that the specified condition holds.

  6. data SBool (b :: Bool)

    gogol-core Gogol.Prelude

    No documentation available.

  7. class SBoolI (b :: Bool)

    gogol-core Gogol.Prelude

    No documentation available.

  8. sbool :: SBoolI b => SBool b

    gogol-core Gogol.Prelude

    No documentation available.

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

    unliftio UnliftIO.Foreign

    Convert a Haskell Bool to its numeric representation

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

    unliftio UnliftIO.Foreign

    Convert a Boolean in numeric representation to a Haskell value

Page 71 of many | Previous | Next