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. bool :: Boolean a => a -> Bool

    xml-conduit Text.XML.Cursor

    No documentation available.

  2. bool :: Bool -> Doc

    ansi-wl-pprint Text.PrettyPrint.ANSI.Leijen

    No documentation available.

  3. bool :: TypeInfo

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

    No documentation available.

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

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

  6. bool :: Bool

    leancheck Test.LeanCheck.Utils.TypeBinding

    Undefined Bool value.

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

    netlib-ffi Numeric.Netlib.Utility

    No documentation available.

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

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

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

    protolude Protolude.Bool

    No documentation available.

Page 13 of many | Previous | Next