Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
many :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]parsec Text.Parsec.Prim many p applies the parser p zero or more times. Returns a list of the returned values of p.
identifier = do{ c <- letter ; cs <- many (alphaNum <|> char '_') ; return (c:cs) }many1 :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]parsec Text.Parsec.Prim many1 p applies the parser p one or more times. Returns a list of the returned values of p.
word = many1 letter
-
parsec Text.Parsec.Prim No documentation available.
skipMany :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m ()parsec Text.Parsec.Prim skipMany p applies the parser p zero or more times, skipping its result.
spaces = skipMany space
many1 :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]parsec Text.ParserCombinators.Parsec.Combinator many1 p applies the parser p one or more times. Returns a list of the returned values of p.
word = many1 letter
-
parsec Text.ParserCombinators.Parsec.Combinator manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. This parser can be used to scan comments:
simpleComment = do{ string "<!--" ; manyTill anyChar (try (string "-->")) }Note the overlapping parsers anyChar and string "-->", and therefore the use of the try combinator. -
parsec Text.ParserCombinators.Parsec.Combinator skipMany1 p applies the parser p one or more times, skipping its result.
many :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]parsec Text.ParserCombinators.Parsec.Prim many p applies the parser p zero or more times. Returns a list of the returned values of p.
identifier = do{ c <- letter ; cs <- many (alphaNum <|> char '_') ; return (c:cs) }skipMany :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m ()parsec Text.ParserCombinators.Parsec.Prim skipMany p applies the parser p zero or more times, skipping its result.
spaces = skipMany space
getAnyProcessStatus :: Bool -> Bool -> IO (Maybe (ProcessID, ProcessStatus))unix System.Posix.Process getAnyProcessStatus blk stopped calls waitpid, returning Just (pid, tc), the ProcessID and ProcessStatus for any child process if a child process has exited, or Nothing if there are child processes but none have exited. If there are no child processes, then getAnyProcessStatus raises an isDoesNotExistError exception. If blk is False, then WNOHANG is set in the options for waitpid, otherwise not. If stopped is True, then WUNTRACED is set in the options for waitpid, otherwise not.