hex -package:hex-text
Render an integer using hexadecimal notation. (No leading 0x is
added.) Has a specialized implementation.
Render an integer using hexadecimal notation. (No leading "0x" is
added.)
Show a number in hex, without prefix, or types.
Convert strings into hexadecimal and back.
Convert strings into hexadecimal and back.
Hexadecimal formatting with maximum-bit length
Common Parsers
Parse at least one hex digit.
Render an integral type in hexadecimal.
Newtype wrapper to parse and produce integral numbers in hexadecimal
format
Convert strings into hexadecimal and back.
Convert strings into hexadecimal and back.
This module contains
ByteString-valued combinators for
implementing the RFC 4648 specification of the Base32hex encoding
format. This includes padded and unpadded decoding variants, as well
as internal and external validation for canonicity.
This module contains
ByteString-valued combinators for
implementing the RFC 4648 specification of the Base32hex encoding
format. This includes strictly padded/unpadded decoding variants, as
well as internal and external validation for canonicity.
This module contains
ShortByteString-valued combinators for
implementing the RFC 4648 specification of the Base32hex encoding
format. This includes strictly padded/unpadded and decoding variants,
as well as internal and external validation for canonicity.
This module contains
Text-valued combinators for implementing
the RFC 4648 specification of the Base32hex encoding format. This
includes strictly padded and unpadded decoding variants, as well as
internal and external validation for canonicity.
This module contains
Text-valued combinators for implementing
the RFC 4648 specification of the Base32hex encoding format. This
includes strictly padded/unpadded decoding variants, as well as
internal and external validation for canonicity.
This module contains
ShortText-valued combinators implementing
the RFC 4648 specification for the Base32hex encoding format. This
includes strictly padded/unpadded decoding variants, and external +
internal validations for canonicity.
Basic type
>>> 255 :: Hex
0x0000_0000_0000_00ff
Read a hexadecimal integer, consisting of an optional leading
"0x" followed by at least one hexadecimal digit. Input is
consumed until a non-hex-digit or end of string is reached. This
function is case insensitive.
This function does not handle leading sign characters. If you need to
handle signed input, use
signed hexadecimal.
Note: For fixed-width integer types, this function does not
attempt to detect overflow, so a sufficiently long input may give
incorrect results. If you are worried about overflow, use
Integer for your result type.
Parses a hexadecimal digit (a digit or a letter between 'a' and 'f' or
'A' and 'F'). Returns the parsed character.