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. data Bool

    quaalude Essentials

    No documentation available.

  2. data Bool

    verset Verset

    No documentation available.

  3. data Bool

    xmonad-contrib XMonad.Config.Prime

    No documentation available.

  4. bool :: a -> a -> Bool -> a

    base 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
    

  5. bool :: Bool -> Encoding

    aeson Data.Aeson.Encoding

    No documentation available.

  6. bool :: Bool -> Encoding

    aeson Data.Aeson.Encoding.Internal

    No documentation available.

  7. bool :: MonadGen m => m Bool

    hedgehog Hedgehog.Gen

    Generates a random boolean. This generator shrinks to False. This is a specialization of enumBounded, offered for convenience.

  8. bool :: MonadGen m => m Bool

    hedgehog Hedgehog.Internal.Gen

    Generates a random boolean. This generator shrinks to False. This is a specialization of enumBounded, offered for convenience.

  9. bool :: a -> a -> Bool -> a

    base-compat Data.Bool.Compat

    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 :: Bool -> YamlBuilder

    yaml Data.Yaml.Builder

    No documentation available.

Page 12 of many | Previous | Next