Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
encodeMany :: forall (m :: Type -> Type) t . (Coded c, MonadPut m, Foldable t) => t c -> Coding m ()bits Data.Bits.Coded No documentation available.
manyCharacters :: (Char -> Bool) -> ReadP Textburrito Burrito.Internal.Match No documentation available.
-
butcher UI.Butcher.Monadic.Command Specifies whether we accept 0-1 or 0-n for CmdParserParts.
ManyUpperBound1 :: ManyUpperBoundbutcher UI.Butcher.Monadic.Command No documentation available.
ManyUpperBoundN :: ManyUpperBoundbutcher UI.Butcher.Monadic.Command No documentation available.
-
butcher UI.Butcher.Monadic.Command Add part that is not required to occur, and can occur as often as indicated by ManyUpperBound. Must not succeed on empty input.
-
butcher UI.Butcher.Monadic.Command Add part that is not required to occur, and can occur as often as indicated by ManyUpperBound. Must not succeed on empty input. Only difference to addCmdPart is that it accepts Input, i.e. can behave differently for String and [String] input.
PartMany :: PartDesc -> PartDescbutcher UI.Butcher.Monadic.Types No documentation available.
many :: Alternative f => f a -> f [a]cabal-install-solver Distribution.Solver.Compat.Prelude 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.filterIfAny :: (a -> Bool) -> PSQ k a -> PSQ k acabal-install-solver Distribution.Solver.Modular.PSQ Will partition the list according to the predicate. If there is any element that satisfies the predicate, then only the elements satisfying the predicate are returned. Otherwise, the rest is returned.