base16

Pure Haskell base16 encoding/decoding (docs.ppad.tech/base16).
git clone git://git.ppad.tech/base16.git
Log | Files | Refs | README | LICENSE

commit 195d167a0062eee57596f4b8119c09be3bc46094
parent 576dab011262d28b7e4df1af9988c1d6ceedea49
Author: Jared Tobin <jared@jtobin.io>
Date:   Fri, 17 Jan 2025 22:20:59 +0400

lib: minor tweaks

Diffstat:
Mbench/Main.hs | 7+++++++
Mlib/Data/ByteString/Base16.hs | 2+-
Mppad-base16.cabal | 4++--
3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/bench/Main.hs b/bench/Main.hs @@ -16,6 +16,13 @@ main = defaultMain [ , decode ] +minimal_encode :: Benchmark +minimal_encode = bench "ppad-base16" $ nf B16.encode (BS.replicate 1024 0x00) + +minimal_decode :: Benchmark +minimal_decode = bench "ppad-base16" $ nf B16.decode + (B16.encode (BS.replicate 512 0x00)) + encode :: Benchmark encode = bgroup "encode" [ bench "ppad-base16" $ nf B16.encode (BS.replicate 1024 0x00) diff --git a/lib/Data/ByteString/Base16.hs b/lib/Data/ByteString/Base16.hs @@ -10,7 +10,7 @@ -- License: MIT -- Maintainer: Jared Tobin <jared@ppad.tech> -- --- base16 encoding and decoding of strict bytestrings. +-- Pure base16 encoding and decoding of strict bytestrings. module Data.ByteString.Base16 ( encode diff --git a/ppad-base16.cabal b/ppad-base16.cabal @@ -1,7 +1,7 @@ cabal-version: 3.0 name: ppad-base16 version: 0.1.0 -synopsis: Simple base16 encoding and decoding on bytestrings. +synopsis: Pure base16 encoding and decoding on bytestrings. license: MIT license-file: LICENSE author: Jared Tobin @@ -11,7 +11,7 @@ build-type: Simple tested-with: GHC == 9.8.1 extra-doc-files: CHANGELOG description: - Simple base16 (hexadecimal) encoding and decoding on bytestrings. + Pure base16 (hexadecimal) encoding and decoding on bytestrings. source-repository head type: git