Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. module Data.Functor.Product

    Products, lifted to functors.

  2. data Product (f :: k -> Type) (g :: k -> Type) (a :: k)

    base Data.Functor.Product

    Lifted product of functors.

    Examples

    >>> fmap (+1) (Pair [1, 2, 3] (Just 0))
    Pair [2,3,4] (Just 1)
    
    >>> Pair "Hello, " (Left 'x') <> Pair "World" (Right 'y')
    Pair "Hello, World" (Right 'y')
    

  3. newtype Product a

    base Data.Monoid

    Monoid under multiplication.

    Product x <> Product y == Product (x * y)
    

    Examples

    >>> Product 3 <> Product 4 <> mempty
    Product {getProduct = 12}
    
    >>> mconcat [ Product n | n <- [2 .. 10]]
    Product {getProduct = 3628800}
    

  4. Product :: a -> Product a

    base Data.Monoid

    No documentation available.

  5. newtype Product a

    base Data.Semigroup

    Monoid under multiplication.

    Product x <> Product y == Product (x * y)
    

    Examples

    >>> Product 3 <> Product 4 <> mempty
    Product {getProduct = 12}
    
    >>> mconcat [ Product n | n <- [2 .. 10]]
    Product {getProduct = 3628800}
    

  6. Product :: a -> Product a

    base Data.Semigroup

    No documentation available.

  7. newtype Product a

    base-compat Data.Monoid.Compat

    Monoid under multiplication.

    Product x <> Product y == Product (x * y)
    

    Examples

    >>> Product 3 <> Product 4 <> mempty
    Product {getProduct = 12}
    
    >>> mconcat [ Product n | n <- [2 .. 10]]
    Product {getProduct = 3628800}
    

  8. Product :: a -> Product a

    base-compat Data.Monoid.Compat

    No documentation available.

  9. newtype Product a

    base-compat Data.Semigroup.Compat

    Monoid under multiplication.

    Product x <> Product y == Product (x * y)
    

    Examples

    >>> Product 3 <> Product 4 <> mempty
    Product {getProduct = 12}
    
    >>> mconcat [ Product n | n <- [2 .. 10]]
    Product {getProduct = 3628800}
    

  10. Product :: a -> Product a

    base-compat Data.Semigroup.Compat

    No documentation available.

Page 1 of many | Next