base16: RFC 4648-compliant Base16 encodings/decodings

[ bsd3, data, library ] [ Propose Tags ]

RFC 4648-compliant Base16 encodings and decodings. This library provides performant encoding and decoding primitives, as well as support for textual values.

[Skip to Readme]


[Last Documentation]

  • Data
    • ByteString
      • Data.ByteString.Base16
    • Text
      • Encoding
        • Data.Text.Encoding.Base16


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS], 0.1.1, 0.1.2,,,,,,,,,,,, 1.0
Change log
Dependencies base (<1), bytestring (>=0.10 && <0.11), text (>=1.2 && <1.3) [details]
License BSD-3-Clause
Copyright (c) 2020 Emily Pillmore
Author Emily Pillmore
Revised Revision 1 made by topos at 2020-02-17T21:30:33Z
Category Data
Home page
Bug tracker
Source repo head: git clone
Uploaded by topos at 2020-02-17T20:34:43Z
Distributions LTSHaskell:1.0, NixOS:, Stackage:1.0
Reverse Dependencies 8 direct, 24 indirect [details]
Downloads 8793 total (119 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2020-02-18 [all 3 reports]

Readme for base16-

[back to package description]


Build Status Hackage

Padded and unpadded base16 and base16hex encoding and decoding for Text and ByteString values.

For the companion optics and pattern synonyms, see base16-lens.


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.