Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
filterIfAnyByKeys :: (k -> Bool) -> PSQ k a -> PSQ k acabal-install-solver Distribution.Solver.Modular.PSQ Variant of filterIfAny that takes a predicate on the keys rather than on the values.
ScopeAnyQualifier :: PackageName -> ConstraintScopecabal-install-solver Distribution.Solver.Types.PackageConstraint The package with the specified name regardless of qualifier.
ScopeAnySetupQualifier :: PackageName -> ConstraintScopecabal-install-solver Distribution.Solver.Types.PackageConstraint The package with the specified name when it has a setup qualifier.