Encode -is:module
Provide a custom way to encode a particular file format. This is an
alternative approach to
Writable class
Not on Stackage, so not searched.
Encoding character data
Encode a value using binary serialisation to a lazy ByteString.
Encode a Haskell
String to a list of
Word8 values, in
UTF8 format.
Encode a value using binary serialization to a strict ByteString.
Encode a string into base64 form. The result will always be a multiple
of 4 bytes in length.
Encode a string into base64url form. The result will always be a
multiple of 4 bytes in length.
Encode a value into its YAML representation.
Convert text into bytes, using the provided codec. If the codec is not
capable of representing an input character, an exception will be
thrown.
Since 0.3.0
Encode a
ByteString value in base16 (i.e. hexadecimal). Encoded
values will always have a length that is a multiple of 2.
Examples:
encode "foo" == "666f6f"
Efficiently serialize CSV records as a lazy
ByteString.
Efficiently serialize records in an incremental fashion. Equivalent to
encodeWith defaultEncodeOptions.
Convert a
FilePath to a platform‐specific format, suitable for
use with external OS functions.
Note: The type
platformTextFormat can change depending upon
the underlying compilation platform. Consider using
toText or
encodeString instead. See
Rules for more information.
Since: 0.3
Convert a
FilePath to a platform‐specific format, suitable for
use with external OS functions.
Note: The type of
platformTextFormat can change depending
upon the underlying compilation platform. Consider using
toText
or
encodeString instead. See
Rules for more information.
Since: 0.3
Encode a Haskell value into a string, in JSON format.
This is a superset of JSON, as types other than Array and Object are
allowed at the top level.
Definition for encoding a given type into a binary representation,
using the
Encoding Monoid.
Definition for encoding a given type into a binary representation,
using the
Encoding Monoid.
Encode an
IP as
Text.
>>> encode (ipv4 10 0 0 25)
"10.0.0.25"
>>> encode (ipv6 0x3124 0x0 0x0 0xDEAD 0xCAFE 0xFF 0xFE00 0x1)
"3124::dead:cafe:ff:fe00:1"