Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. sumMaybe :: (Num a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a)

    relational-schemas Database.Custom.SQLServer

    Aggregation function SUM.

  2. sum' :: (Num a, AggregatedContext ac, SqlContext ac) => Record Flat a -> Record ac (Maybe a)

    relational-schemas Database.Custom.SQLite3

    Aggregation function SUM.

  3. sumMaybe :: (Num a, AggregatedContext ac, SqlContext ac) => Record Flat (Maybe a) -> Record ac (Maybe a)

    relational-schemas Database.Custom.SQLite3

    Aggregation function SUM.

  4. sumTuple :: Int -> Q Exp

    tuple-th TupleTH

    No documentation available.

  5. msum :: (Foldable t, MonadPlus m) => t (m a) -> m a

    base 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"
    

  6. asum :: (Foldable t, Alternative f) => t (f a) -> f a

    base Control.Applicative

    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"
    

  7. biasum :: (Bifoldable t, Alternative f) => t (f a) (f a) -> f a

    base Data.Bifoldable

    The sum of a collection of actions, generalizing biconcat.

    Examples

    Basic usage:
    >>> biasum (Nothing, Nothing)
    Nothing
    
    >>> biasum (Nothing, Just 42)
    Just 42
    
    >>> biasum (Just 18, Nothing)
    Just 18
    
    >>> biasum (Just 18, Just 42)
    Just 18
    

  8. bimsum :: (Bifoldable t, Alternative f) => t (f a) (f a) -> f a

    base Data.Bifoldable

    Alias for biasum.

  9. bisum :: (Bifoldable t, Num a) => t a a -> a

    base Data.Bifoldable

    The bisum function computes the sum of the numbers of a structure.

    Examples

    Basic usage:
    >>> bisum (42, 17)
    59
    
    >>> bisum (Right 42)
    42
    
    >>> bisum (BiList [13, 29, 4] [18, 1, 7])
    72
    
    >>> bisum (BiList [13, 29, 4] [])
    46
    
    >>> bisum (BiList [] [])
    0
    

  10. asum :: (Foldable t, Alternative f) => t (f a) -> f a

    base 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"
    

Page 77 of many | Previous | Next