Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
conduit Data.Conduit.Combinators Get the product of all elements in the chunked stream. Subject to fusion
product' :: (Foldable f, Num a) => f a -> aextra Data.Foldable.Extra productOn' :: (Foldable f, Num b) => (a -> b) -> f a -> bextra Data.Foldable.Extra A generalization of productOn' to Foldable instances.
-
extra Data.List.Extra A strict version of product.
product' [1, 2, 4] == 8
productOn' :: Num b => (a -> b) -> [a] -> bextra Data.List.Extra A strict version of product, using a custom valuation function.
productOn' read ["1", "2", "4"] == 8
-
extra Extra A strict version of product.
product' [1, 2, 4] == 8
productOn' :: Num b => (a -> b) -> [a] -> bextra Extra A strict version of product, using a custom valuation function.
productOn' read ["1", "2", "4"] == 8
productOf :: forall k a (is :: IxList) s . (Is k A_Fold, Num a) => Optic' k is s a -> s -> aoptics-core Optics.Fold Calculate the Product of every number targeted by a Fold.
>>> productOf each (4,5) 20 >>> productOf folded [1,2,3,4,5] 120
product ≡ productOf folded
This operation may be more strict than you would expect. If you want a lazier version use \o -> getProduct . foldMapOf o Product.productTypeFrom :: forall a (xs :: [Type]) . IsProductType a xs => a -> NP I xsgenerics-sop Generics.SOP Convert from a product type to its product representation.
productTypeTo :: forall a (xs :: [Type]) . IsProductType a xs => NP I xs -> agenerics-sop Generics.SOP Convert a product representation to the original type.