Hoogle Search

Within LTS Haskell 24.39 (ghc-9.10.3)

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

  1. UnboxedSum :: l -> Int -> Int -> Exp l -> Exp l

    haskell-src-exts Language.Haskell.Exts.Syntax

    unboxed sum

  2. throwIfConsumesMoreThan :: Int64 -> OutputStream ByteString -> IO (OutputStream ByteString)

    io-streams System.IO.Streams.ByteString

    Wraps an OutputStream, producing a new stream that will pass along at most n bytes to the wrapped stream. If more than n bytes are sent to the outer stream, a TooManyBytesWrittenException will be thrown. Note: if more than n bytes are sent to the outer stream, throwIfConsumesMoreThan will not necessarily send the first n bytes through to the wrapped stream before throwing the exception. Example:

    ghci> (os :: OutputStream ByteString, getList) <- Streams.listOutputStream
    ghci> os' <- Streams.throwIfConsumesMoreThan 5 os
    ghci> Streams.fromList ["short"] >>= Streams.connectTo os'
    ghci> getList
    ["short"]
    ghci> os'' <- Streams.throwIfConsumesMoreThan 5 os
    ghci> Streams.fromList ["long", "string"] >>= Streams.connectTo os''
    *** Exception: Too many bytes written
    

  3. data Consumer c a

    io-streams System.IO.Streams.Internal

    No documentation available.

  4. fromConsumer :: Consumer r a -> IO (OutputStream r)

    io-streams System.IO.Streams.Internal

    No documentation available.

  5. osum :: (MonoFoldable mono, Num (Element mono)) => mono -> Element mono

    mono-traversable Data.MonoTraversable

    osum computes the sum of the numbers of a monomorphic container.

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

    rio RIO.Prelude

    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

    rio RIO.Prelude

    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. bisum :: (Bifoldable t, Num a) => t a a -> a

    rio RIO.Prelude

    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
    

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

    rio RIO.Prelude

    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"
    

  10. timeZoneSummerOnly :: TimeZone -> Bool

    rio RIO.Time

    Is this time zone just persisting for the summer?

Page 105 of many | Previous | Next