any -base -package
Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
O(n) any p t determines whether any character in the Text t satisifes the predicate p. Subject to fusion.
O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
This parser succeeds for any character. Returns the parsed character.
The parser anyToken accepts any kind of token. It is for example used to implement eof. Returns the accepted token.
Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary. For instance, 2004-02-29 + 2 years = 2006-02-28.
Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary. For instance, 2004-02-29 + 2 years = 2006-03-01.
Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary. For instance, 2004-02-29 + 2 years = 2006-02-28.
Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary. For instance, 2004-02-29 + 2 years = 2006-03-01.
convert from proleptic Julian year and day format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
convert from proleptic Julian year and day format. Invalid day numbers will return Nothing
getAnyProcessStatus blk stopped calls waitpid, returning Just (pid, tc), the ProcessID and ProcessStatus for any child process if one is available, Nothing otherwise. 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.
The IPv6 wild card address.
The IPv4 wild card address.
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 p applies the parser p one or more times. Returns a list of the returned values of p.
> word = many1 letter
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.
Show more results