RFC 4648-compliant Base16 encoding and decoding.
For the companion optics and pattern synonyms, see base16-lens.
The following types have supported codecs:
Data.ByteStringData.ByteString.LazyData.ByteString.ShortData.TextData.Text.LazyData.Text.Short
Additionally this library has
- Much better performance than
base16-bytestringfor encode and decode, with a more conventional api. - Support for mixed-case hex decoding (defaults to lower-case encoding by convention)
- Optics for handling more complex structures with Base16 representations via the
base16-lenspackage - Checks for both validity and correctness of Base16 encodings.
There are no dependencies aside from those bundled with GHC.