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.
-
verset Verset No documentation available.
many :: Alternative f => f a -> f [a]verset Verset 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.isOnAnyVisibleWS :: Query Boolxmonad-contrib XMonad.Actions.GroupNavigation A query that matches all windows on visible workspaces. This is useful for configurations with multiple screens, and matches even invisible windows.
many1 :: Parser a -> Parser [a]xmonad-contrib XMonad.Util.Parser Parse one or more occurrences of the given parser.
manyTill :: Parser a -> Parser end -> Parser [a]xmonad-contrib XMonad.Util.Parser manyTill p end parses zero or more occurrences of p, until end succeeds. Returns a list of values returned by p.
skipMany :: Parser a -> Parser ()xmonad-contrib XMonad.Util.Parser Like many, but discard the result.
skipMany1 :: Parser a -> Parser ()xmonad-contrib XMonad.Util.Parser Like many1, but discard the result.