BSD-3-Clause licensed by Emily Pillmore
This version can be pinned in stack with:base16-0.2.0.1@sha256:db65d0d90fc656d21597f070deee34ac362e123f1fb956e07d98a53210db8b15,2089
Module documentation for 0.2.0.1
- Data
- Data.ByteString
- Data.Text
- Data.Text.Encoding
- Data.Text.Lazy
Base16

Padded and unpadded base16 and base16hex encoding and decoding for Text
and ByteString
values.
For the companion optics and pattern synonyms, see base16-lens.
Summary
What does this library provide? Here is the summary:
- Great encoding performance compared to existing libraries (e.g.
memory
, base16-bytestring
)
- Better decoding performance compared to existing libraries.
- Support for
Text
encodings and decodings
- Optics for handling more complex structures with Base16 representations via the
base16-lens
package
- Checks for both valid Base16 and correct Base16 and Base16hex encodings
There are no dependencies aside from those bundled with GHC.
Revision history for base16
0.2.0.1
- Improved performance. Decode and encode are now 3.5x-5x the next best lib.
0.2.0
- Add lenient decoders
- Fix bug in
Text
decodeBase16
which failed on invalid UTF-8 values as a result of decoding
- Add
decodeBase16With
combinators
0.1.3
- Add lazy variants for
Text
and ByteString
values
0.1.2.1 – 2020-02-17
- Documentation now references correct RFC section
0.1.2 – 2020-02-17
- Unmask loops - now correct.
0.1.1 – 2020-02-17
- Mask
Word32
and Word64
loops (flaky)
0.1.0.0 – 2020-02-16
- First version. Released on an unsuspecting world.