:: Text -> ByteString

Encode text using UTF-8 encoding.
Encode text using little endian UTF-16 encoding.
Encode text using big endian UTF-16 encoding.
Encode text using little endian UTF-32 encoding.
Encode text using big endian UTF-32 encoding.
URI encode a Text into a ByteString, unicode aware.
Make a request message header.
Warning: error remains in code
Throw an error with the given Text.
error applied to Text Since 0.4.1
error that takes Text as an argument.
Provided for type disambiguation in the presence of OverloadedStrings. Since 0.1.0.0
Variation on renderJSON for files that don't require the repo layout
Encode an Enum in 32 bits by encoding its signed Int equivalent (beware of truncation, an Enum may contain more than 2^32 points).
Encode an Enum in 16 bits by encoding its signed Int equivalent (beware of truncation, an Enum may contain more than 2^16 points).
Efficiently serialize a JSON value as a lazy ByteString. This is implemented in terms of the ToJSON class's toEncoding method.
Encode a value into its YAML representation.
A drop-in replacement for aeson's encode function, producing JSON-ByteStrings for human readers. Follows the default configuration in defConfig.
Like encode, but produces strict ByteString. Since: 0.2.3.0
Helper function that can be used when you want to make an instance of ToJSON an instance of LogShowable. This helps avoid having to use UndecidableInstances.