|> package:text-builder-linear

Append Text suffix to a Buffer by mutating it. If a suffix is statically known, consider using (|>#) for optimal performance.
>>> :set -XOverloadedStrings -XLinearTypes

>>> runBuffer (\b -> b |> "foo" |> "bar")
"foobar"
Append a null-terminated UTF-8 string to a Buffer by mutating it. E. g.,
>>> :set -XOverloadedStrings -XLinearTypes -XMagicHash

>>> runBuffer (\b -> b |># "foo"# |># "bar"#)
"foobar"
The literal string must not contain zero bytes \NUL and must be a valid UTF-8, these conditions are not checked.
Append the decimal representation of a bounded integral number.
Append the decimal representation of an unbounded integral number.
Append the decimal representation of a Double. Matches show in displaying in standard or scientific notation:
>>> runBuffer (\b -> b |>% 123.456)
"123.456"
>>> runBuffer (\b -> b |>% 1.23e7)
"1.23e7"
Append the lower-case hexadecimal representation of a bounded integral number. Negative numbers are interpreted as their corresponding unsigned number:
>>> :set -XOverloadedStrings -XLinearTypes

>>> import Data.Int (Int8, Int16)

>>> runBuffer (\b -> b |>& (-1 :: Int8)) == "ff"
True

>>> runBuffer (\b -> b |>& (-1 :: Int16)) == "ffff"
True
Append Char to a Buffer by mutating it.
>>> :set -XLinearTypes

>>> runBuffer (\b -> b |>. 'q' |>. 'w')
"qw"
Warning: In contrast to singleton, it is the responsibility of the caller to sanitize surrogate code points with safe.
Append given number of spaces.