Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
sum :: forall (m :: Type -> Type) a o . (Monad m, Num a) => ConduitT a o m aconduit Data.Conduit.Combinators Get the sum of all values in the stream. Subject to fusion
sum :: (Foldable t, Num a) => t a -> ahedgehog Hedgehog.Internal.Prelude The sum function computes the sum of the numbers of a structure.
Examples
Basic usage:>>> sum [] 0
>>> sum [42] 42
>>> sum [1..10] 55
>>> sum [4.1, 2.0, 1.7] 7.8
>>> sum [1..] * Hangs forever *
sum :: (Foldable t, Num a) => t a -> aghc GHC.Prelude.Basic No documentation available.
sum :: (Monad m, Num a) => Producer a m () -> m apipes Pipes.Prelude Compute the sum of the elements of a Producer
-
foldl Control.Foldl Computes the sum of all elements
sum :: forall a (f :: Type -> Type) . (Num a, Foldable f) => T f a -> anon-empty Data.NonEmpty sum does not need a zero for initialization
sum :: (MonoFoldable mono, Num (Element mono)) => mono -> Element monomono-traversable Data.MonoTraversable.Unprefixed Synonym for osum
sum :: (Foldable t, Num a) => t a -> ario RIO.List The sum function computes the sum of the numbers of a structure.
Examples
Basic usage:>>> sum [] 0
>>> sum [42] 42
>>> sum [1..10] 55
>>> sum [4.1, 2.0, 1.7] 7.8
>>> sum [1..] * Hangs forever *
sum :: (Foldable t, Num a) => t a -> ario RIO.Prelude The sum function computes the sum of the numbers of a structure.
Examples
Basic usage:>>> sum [] 0
>>> sum [42] 42
>>> sum [1..10] 55
>>> sum [4.1, 2.0, 1.7] 7.8
>>> sum [1..] * Hangs forever *
sum :: (Vector v a, Num a) => v a -> ario RIO.Vector No documentation available.