[ base16, base32, base64, bsd3, library, rfc4648, unclassified ] [ Propose Tags ]

Base-N ByteStrings for base{16,32,58,64}

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Change log
Dependencies base (>=4.7 && <5), bytestring [details]
License BSD-3-Clause
Copyright 2018 William Fisher
Author William Fisher
Home page
Bug tracker
Source repo head: git clone
Uploaded by filwisher at 2018-03-29T12:27:56Z
Distributions NixOS:
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1294 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-03-29 [all 1 reports]

Readme for basen-bytestring-

[back to package description]


RFC-4648 compliant base-n ByteStrings for the common cases:


All with the same API:

module Data.ByteString.BaseN where

import qualified Data.ByteString.Char8 as B8

encode         :: B8.ByteString -> B8.ByteString
decode         :: B8.ByteString -> B8.ByteString

encodeAlphabet :: Enc -> B8.ByteString -> B8.ByteString
decodeAlphabet :: Enc -> B8.ByteString -> B8.ByteString

Currently Data.ByteString.Base58 is not implemented although it is on the roadmap.

The core Data.ByteString.BaseN contains all the common utilities for packing bytes, processing ByteStrings, creating encodings, and encoding/decoding single bytes.