Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
colorSum :: StateVar CapabilityOpenGL Graphics.Rendering.OpenGL.GL.ColorSum No documentation available.
msum :: (Foldable t, MonadPlus m) => t (m a) -> m aghc-internal GHC.Internal.Control.Monad The sum of a collection of actions using (<|>), generalizing concat. msum is just like asum, but specialised to MonadPlus.
Examples
Basic usage, using the MonadPlus instance for Maybe:>>> msum [Just "Hello", Nothing, Just "World"] Just "Hello"
asum :: (Foldable t, Alternative f) => t (f a) -> f aghc-internal GHC.Internal.Data.Foldable The sum of a collection of actions using (<|>), generalizing concat. asum is just like msum, but generalised to Alternative.
Examples
Basic usage:>>> asum [Just "Hello", Nothing, Just "World"] Just "Hello"
msum :: (Foldable t, MonadPlus m) => t (m a) -> m aghc-internal GHC.Internal.Data.Foldable The sum of a collection of actions using (<|>), generalizing concat. msum is just like asum, but specialised to MonadPlus.
Examples
Basic usage, using the MonadPlus instance for Maybe:>>> msum [Just "Hello", Nothing, Just "World"] Just "Hello"
-
ghc-internal GHC.Internal.Data.Monoid No documentation available.
-
ghc-internal GHC.Internal.Data.Semigroup.Internal No documentation available.
CostCentresSummary :: DoCostCentresghc-internal GHC.Internal.RTS.Flags No documentation available.
defaultPowerSumArray :: (Index ix, Source r e, Num e) => Array r ix e -> Int -> emassiv Data.Massiv.Core.Operations No documentation available.
powerSumArray :: (FoldNumeric r e, Index ix) => Array r ix e -> Int -> emassiv Data.Massiv.Core.Operations Raise each element in the array to some non-negative power and sum the results
ssum :: forall r ix e . (Num e, Stream r ix e) => Array r ix e -> emassiv Data.Massiv.Vector Add all elements of the array together Related: sum.
Examples
>>> import Data.Massiv.Vector as V >>> V.ssum $ V.sfromList [10, 3, 70, 5 :: Int] 88