Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
base Text.ParserCombinators.ReadP Parses zero or more occurrences of the given parser.
-
base Text.ParserCombinators.ReadP Parses one or more occurrences of the given parser.
manyTill :: ReadP a -> ReadP end -> ReadP [a]base Text.ParserCombinators.ReadP manyTill p end parses zero or more occurrences of p, until end succeeds. Returns a list of values returned by p.
skipMany :: ReadP a -> ReadP ()base Text.ParserCombinators.ReadP Like many, but discards the result.
skipMany1 :: ReadP a -> ReadP ()base Text.ParserCombinators.ReadP Like many1, but discards the result.
-
base GHC.Base No documentation available.
compactContainsAny# :: a -> State# RealWorld -> (# State# RealWorld, Int# #)base GHC.Base Returns 1# if the object is in any CNF at all, 0# otherwise.
many :: Alternative f => f a -> f [a]base GHC.Base 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.-
base GHC.Exts No documentation available.
compactContainsAny# :: a -> State# RealWorld -> (# State# RealWorld, Int# #)base GHC.Exts Returns 1# if the object is in any CNF at all, 0# otherwise.