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

    prettyprinter-compat-wl-pprint Text.PrettyPrint.Leijen

    No documentation available.

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

    verset Verset

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

    wl-pprint Text.PrettyPrint.Leijen

    No documentation available.

  4. module GHC.Data.BooleanFormula

    Boolean formulas without quantifiers and without negation. Such a formula consists of variables, conjunctions (and), and disjunctions (or). This module is used to represent minimal complete definitions for classes.

  5. data BooleanFormula a

    ghc GHC.Data.BooleanFormula

    No documentation available.

  6. BoolLit :: Bool -> StaticLit

    ghc GHC.StgToJS.Types

    No documentation available.

  7. BoolOpt :: Description -> OptFlags -> OptFlags -> (Bool -> a -> a) -> (a -> Maybe Bool) -> OptDescr a

    Cabal Distribution.Simple.Command

    No documentation available.

  8. class BooleanFlag a

    Cabal Distribution.Simple.Flag

    Types that represent boolean flags.

  9. class BooleanFlag a

    Cabal Distribution.Simple.Setup

    Types that represent boolean flags.

  10. class Boolean a

    xml-conduit Text.XML.Cursor

    Something that can be used in a predicate check as a boolean.

Page 18 of many | Previous | Next