(parens p) parses "P", "(P0)", "((P0))", etc, p parses "P" in the current precedence context and parses "P0" in precedence context zero
A parser for versions in the format produced by showVersion.
The partition function takes a predicate a list and returns the pair of lists of elements which do and do not satisfy the predicate, respectively; i.e.,
> partition p xs == (filter p xs, filter (not . p) xs)
Partitions a list of Either into two lists All the Left elements are extracted, in order, to the first component of the output. Similarly the Right elements are extracted to the second component of the output.
Zp: Separator, Paragraph
readParen True p parses what p parses, but surrounded with parentheses.
readParen False p parses what p parses, but optionally surrounded with parentheses.
utility function that surrounds the inner show function with parentheses when the Bool parameter is True.
> comparing p x y = compare (p x) (p y)
Useful combinator for use in conjunction with the xxxBy family of functions from Data.List, for example:
> ... sortBy (comparing fst) ...
Extracts the imaginary part of a complex number.
Selects Unicode space and separator characters.
Zl: Separator, Line
Extracts the real part of a complex number.
Observe the argument types of a type representation
Returns the number of sparks currently in the local spark pool
Show more results