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.

  1. bool :: TypeInfo

    postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static

    No documentation available.

  2. bool :: a -> a -> Bool -> a

    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
    

  3. bool :: a -> a -> Bool -> a

    errors Control.Error.Util

    Case analysis for the Bool type.

    bool a b c == if c then b else a
    

  4. bool :: Bool

    leancheck Test.LeanCheck.Utils.TypeBinding

    Undefined Bool value.

  5. bool :: Bool -> FortranIO r (Ptr Bool)

    netlib-ffi Numeric.Netlib.Utility

    No documentation available.

  6. bool :: a -> a -> Bool -> a

    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
    

  7. bool :: a -> a -> Bool -> a

    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
    

  8. bool :: a -> a -> Bool -> a

    protolude Protolude.Bool

    No documentation available.

  9. bool :: TextParser Bool

    HaXml Text.XML.HaXml.Schema.Parse

    Parse a textual boolean, i.e. "true", "false", "0", or "1"

  10. bool :: a -> a -> Bool -> a

    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
    

Page 13 of many | Previous | Next