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.
many :: Alternative f => f a -> f [a]simple-cmd-args SimpleCmdArgs Zero or more.
Examples
>>> many (putStr "la") lalalalalalalalala... * goes on forever *
>>> many Nothing Just []
>>> take 5 <$> many (Just 1) * hangs forever *
Note that this function can be used with Parsers based on Applicatives. In that case many parser will attempt to parse parser zero or more times until it fails.indicesOfAny :: [ByteString] -> ByteString -> [(Int64, [Int])]stringsearch Data.ByteString.Lazy.Search.KarpRabin indicesOfAny finds all occurrences of any of several non-empty strict patterns in a lazy target string. If no non-empty patterns are given, the result is an empty list. Otherwise the result list contains the pairs of all indices where any of the (non-empty) patterns start and the list of all patterns starting at that index, the patterns being represented by their (zero-based) position in the pattern list. Empty patterns are filtered out before processing begins.
indicesOfAny :: [ByteString] -> ByteString -> [(Int, [Int])]stringsearch Data.ByteString.Search.KarpRabin indicesOfAny finds all occurrences of any of several non-empty patterns in a strict target string. If no non-empty patterns are given, the result is an empty list. Otherwise the result list contains the pairs of all indices where any of the (non-empty) patterns start and the list of all patterns starting at that index, the patterns being represented by their (zero-based) position in the pattern list. Empty patterns are filtered out before processing begins.
manyAccum :: (a -> [a] -> [a]) -> Parser a -> Parser [a]trifecta Text.Trifecta.Parser No documentation available.
many :: (Alternative m, Vector vector a) => m a -> m (vector a)vector-builder VectorBuilder.Alternative No documentation available.
manyBuilder :: Alternative m => m a -> m (Builder a)vector-builder VectorBuilder.Alternative No documentation available.
many :: (MonadPlus m, Vector vector element) => m element -> m (vector element)vector-builder VectorBuilder.MonadPlus No documentation available.
many1 :: (MonadPlus m, Vector vector element) => m element -> m (vector element)vector-builder VectorBuilder.MonadPlus No documentation available.
manyBuilder :: MonadPlus m => m element -> m (Builder element)vector-builder VectorBuilder.MonadPlus No documentation available.
ContextReleaseBehavior'Any :: ContextReleaseBehaviorGLFW-b Graphics.UI.GLFW No documentation available.