Hoogle Search
Within LTS Haskell 24.26 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
base Foreign.C.Types No documentation available.
fromBool :: Num a => Bool -> abase Foreign.Marshal.Utils Convert a Haskell Bool to its numeric representation
toBool :: (Eq a, Num a) => a -> Boolbase Foreign.Marshal.Utils Convert a Boolean in numeric representation to a Haskell value
safeReadBool :: String -> Maybe Booltasty Test.Tasty.Options Parse a Bool case-insensitively.
withBool :: String -> (Bool -> Parser a) -> Value -> Parser aaeson 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"
withBool :: String -> (Bool -> Parser a) -> Value -> Parser aaeson 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"
assertBool :: HasCallStack => String -> Bool -> Assertiontasty-hunit Test.Tasty.HUnit Asserts that the specified condition holds.
assertBool :: HasCallStack => String -> Bool -> AssertionHUnit Test.HUnit.Base Asserts that the specified condition holds.
-
gogol-core Gogol.Prelude No documentation available.
-
gogol-core Gogol.Prelude No documentation available.