% -package:formatting
Forms the ratio of two integral numbers.
Compose two optics of compatible flavours.
Returns an optic of the appropriate supertype. If either or both
optics are indexed, the composition preserves all the indices.
Concatenate two
Format strings
A binary constructor for building up trees of weights.
The string
%. May be useful while using
like
and concatenation (
concat_ or
++., depending on your
database). Note that you always have to type the parenthesis, for
example:
name `like` (%) ++. val "John" ++. (%)
The aspect ratio of the width to the height for use with
aspectRatio.
Note that this is
not the same
% operator from the
Data.Ratio module, although they do both semantically represent
ratios. The same symbol is used to signify that the return value is a
ratio.
Type family for normalized pair of
Nats —
Rat.
This operator is an alternative for
$ with a higher precedence.
It is suitable for usage within applicative style code without the
need to add parenthesis.
Concat two error message strings with a newline.
Format specific synonym of
(.).
This is typically easier to use than
(.) is because it
doesn't conflict with
Prelude.(.).
Pastes one
Plane onto another. To be used along with
& like this:
d :: Plane
d = blankPlane 100 100 &
(3, 4) % box '_' 3 5 &
(a, b) % cell 'A' # bold
Apply two formatters to a
Message and combine the resulting
Texts. With apologies to the formatting library for stealing
their operator!
Combine two matplotlib commands
Formats a single value into a string without finalizing: leaving
duplicate percent signs & remaining format sequences.
> "Hello %s!" % "World"
"Hello World!"
> "processor usage: %d%%" % 67
"processor usage: 67%%"
> "load avg: %.2f %.2f %.2f" % 0.666
"load avg: %0.67 %.2f %.2f"
Please use
-% when formatting the last value into a string so
that duplicate percent signs are removed.
Smart-constructor for Quotients
Append a constant string to a format string component.
N.B.: in
scanf, spaces in the format string match any number of
whitespace character until the next nonspace character.
Forms the ratio of two
Int numbers.