man

Conversion of man to Pandoc document.
Conversion of Pandoc documents to roff man page format.
A manual page prompt for XMonad window manager. TODO
  • narrow completions by section number, if the one is specified (like /etc/bash_completion does)
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.
Parses zero or more occurrences of the given parser.
Parses one or more occurrences of the given parser.
manyTill p end parses zero or more occurrences of p, until end succeeds. Returns a list of values returned by p.
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.
many' p applies the action p zero or more times. Returns a list of the returned values of p. The value returned by p is forced to WHNF.
word  = many' letter
many1 p applies the action p one or more times. Returns a list of the returned values of p.
word  = many1 letter
many1' p applies the action p one or more times. Returns a list of the returned values of p. The value returned by p is forced to WHNF.
word  = many1' letter
manyTill p end applies action p zero or more times until action end succeeds, and returns the list of values returned by p. This can be used to scan comments:
simpleComment   = string "<!--" *> manyTill anyChar (string "-->")
(Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.)
manyTill' p end applies action p zero or more times until action end succeeds, and returns the list of values returned by p. This can be used to scan comments:
simpleComment   = string "<!--" *> manyTill' anyChar (string "-->")
(Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.) The value returned by p is forced to WHNF.
Number of connections to a single host to keep alive. Default: 10. Since 0.1.0
Total number of idle connection to keep open at a given time. This limit helps deal with the case where you are making a large number of connections to different hosts. Without this limit, you could run out of file descriptors. Additionally, it can be set to zero to prevent reuse of any connections. Doing this is useful when the server your application is talking to sits behind a load balancer. Default: 512 Since 0.3.7
Perform the given modification to a Request before performing it. This function may be called more than once during request processing. see https://github.com/snoyberg/http-client/issues/350 Default: no modification Since 0.4.4
Perform the given modification to a Response after receiving it. Default: no modification