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

    xmonad-contrib XMonad.Config.Prime

    No documentation available.

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

  3. bool :: Bool -> Encoding

    aeson Data.Aeson.Encoding

    No documentation available.

  4. bool :: Bool -> Encoding

    aeson Data.Aeson.Encoding.Internal

    No documentation available.

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

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

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

  8. bool :: Bool -> YamlBuilder

    yaml Data.Yaml.Builder

    No documentation available.

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

    xml-conduit Text.XML.Cursor

    No documentation available.

  10. bool :: Bool -> Doc

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

    No documentation available.

Page 12 of many | Previous | Next