Hoogle Search

Within LTS Haskell 24.57 (ghc-9.10.3)

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

  1. many :: MonadPlus m => m a -> m [a]

    shellwords Text.Megaparsec.Compat

    many p applies the parser p zero or more times and returns a list of the values returned by p.

    identifier = (:) <$> letter <*> many (alphaNumChar <|> char '_')
    

  2. manyTill :: MonadPlus m => m a -> m end -> m [a]

    shellwords Text.Megaparsec.Compat

    manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. Note that end result is consumed and lost. Use manyTill_ if you wish to keep it. See also: skipMany, skipManyTill.

  3. manyTill_ :: MonadPlus m => m a -> m end -> m ([a], end)

    shellwords Text.Megaparsec.Compat

    manyTill_ p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p and the end result. Use manyTill if you have no need in the result of the end. See also: skipMany, skipManyTill.

  4. skipMany :: MonadPlus m => m a -> m ()

    shellwords Text.Megaparsec.Compat

    skipMany p applies the parser p zero or more times, skipping its result. See also: manyTill, skipManyTill.

  5. skipManyTill :: MonadPlus m => m a -> m end -> m end

    shellwords Text.Megaparsec.Compat

    skipManyTill p end applies the parser p zero or more times skipping results until parser end succeeds. Result parsed by end is then returned. See also: manyTill, skipMany.

  6. ManyWorkers :: Int -> Count -> Work

    streamly Streamly.Internal.Data.Channel

    No documentation available.

  7. ManyWorkers :: Int -> Count -> Work

    streamly Streamly.Internal.Data.SVar

    No documentation available.

  8. foldMany :: forall t (m :: Type -> Type) a b . (IsStream t, Monad m) => Fold m a b -> t m a -> t m b

    streamly Streamly.Internal.Data.Stream.IsStream

    Apply a Fold repeatedly on a stream and emit the fold outputs in the output stream. To sum every two contiguous elements in a stream:

    >>> f = Fold.take 2 Fold.sum
    
    >>> Stream.toList $ Stream.foldMany f $ Stream.fromList [1..10]
    [3,7,11,15,19]
    
    On an empty stream the output is empty:
    >>> Stream.toList $ Stream.foldMany f $ Stream.fromList []
    []
    
    Note Stream.foldMany (Fold.take 0) would result in an infinite loop in a non-empty stream.

  9. foldManyPost :: forall t (m :: Type -> Type) a b . (IsStream t, Monad m) => Fold m a b -> t m a -> t m b

    streamly Streamly.Internal.Data.Stream.IsStream

    Like foldMany but appends empty fold output if the fold and stream termination aligns:

    >>> f = Fold.take 2 Fold.sum
    
    >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList []
    [0]
    
    >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..9]
    [3,7,11,15,9]
    
    >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..10]
    [3,7,11,15,19,0]
    
    Pre-release

  10. foldManyPost :: forall t (m :: Type -> Type) a b . (IsStream t, Monad m) => Fold m a b -> t m a -> t m b

    streamly Streamly.Internal.Data.Stream.IsStream

    Like foldMany but appends empty fold output if the fold and stream termination aligns:

    >>> f = Fold.take 2 Fold.sum
    
    >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList []
    [0]
    
    >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..9]
    [3,7,11,15,9]
    
    >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..10]
    [3,7,11,15,19,0]
    
    Pre-release

Page 247 of many | Previous | Next