Hoogle Search
Within LTS Haskell 24.18 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.
-
rio RIO.Prelude Case analysis for the Bool type. bool f t p evaluates to f when p is False, and evaluates to t when p is True. This is equivalent to if p then t else f; that is, one can think of it as an if-then-else construct with its arguments reordered.
Examples
Basic usage:>>> bool "foo" "bar" True "bar" >>> bool "foo" "bar" False "foo"
Confirm that bool f t p and if p then t else f are equivalent:>>> let p = True; f = "bar"; t = "foo" >>> bool f t p == if p then t else f True >>> let p = False >>> bool f t p == if p then t else f True
-
errors Control.Error.Util Case analysis for the Bool type.
bool a b c == if c then b else a
-
leancheck Test.LeanCheck.Utils.TypeBinding Undefined Bool value.
bool :: Bool -> FortranIO r (Ptr Bool)netlib-ffi Numeric.Netlib.Utility No documentation available.
-
relude Relude.Bool.Reexport Case analysis for the Bool type. bool f t p evaluates to f when p is False, and evaluates to t when p is True. This is equivalent to if p then t else f; that is, one can think of it as an if-then-else construct with its arguments reordered.
Examples
Basic usage:>>> bool "foo" "bar" True "bar" >>> bool "foo" "bar" False "foo"
Confirm that bool f t p and if p then t else f are equivalent:>>> let p = True; f = "bar"; t = "foo" >>> bool f t p == if p then t else f True >>> let p = False >>> bool f t p == if p then t else f True
-
ghc-internal GHC.Internal.Data.Bool Case analysis for the Bool type. bool f t p evaluates to f when p is False, and evaluates to t when p is True. This is equivalent to if p then t else f; that is, one can think of it as an if-then-else construct with its arguments reordered.
Examples
Basic usage:>>> bool "foo" "bar" True "bar" >>> bool "foo" "bar" False "foo"
Confirm that bool f t p and if p then t else f are equivalent:>>> let p = True; f = "bar"; t = "foo" >>> bool f t p == if p then t else f True >>> let p = False >>> bool f t p == if p then t else f True
-
protolude Protolude.Bool No documentation available.
-
HaXml Text.XML.HaXml.Schema.Parse Parse a textual boolean, i.e. "true", "false", "0", or "1"
-
basic-prelude CorePrelude Case analysis for the Bool type. bool f t p evaluates to f when p is False, and evaluates to t when p is True. This is equivalent to if p then t else f; that is, one can think of it as an if-then-else construct with its arguments reordered.
Examples
Basic usage:>>> bool "foo" "bar" True "bar" >>> bool "foo" "bar" False "foo"
Confirm that bool f t p and if p then t else f are equivalent:>>> let p = True; f = "bar"; t = "foo" >>> bool f t p == if p then t else f True >>> let p = False >>> bool f t p == if p then t else f True