packages feed

ppad-base16 0.2.0 → 0.2.1

raw patch · 3 files changed

+21/−5 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG view
@@ -1,5 +1,8 @@ # Changelog +- 0.2.1 (2025-12-28)+  * Adds an 'llvm' build flag and is now tested with GHC 9.10.3.+ - 0.2.0 (2025-03-10)   * Fix bug in which inputs with uppercase hex characters failed to     decode.
bench/Main.hs view
@@ -1,4 +1,5 @@ {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PackageImports #-} @@ -17,11 +18,16 @@   ]  minimal_encode :: Benchmark-minimal_encode = bench "ppad-base16" $ nf B16.encode (BS.replicate 1024 0x00)+minimal_encode =+  let !a = BS.replicate 1024 0x00+  in  bench "ppad-base16/encode" $+        nf B16.encode a  minimal_decode :: Benchmark-minimal_decode = bench "ppad-base16" $ nf B16.decode-  (B16.encode (BS.replicate 512 0x00))+minimal_decode =+  let !a = B16.encode (BS.replicate 512 0x00)+  in  bench "ppad-base16/decode" $+        nf B16.decode a  encode :: Benchmark encode = bgroup "encode" [
ppad-base16.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               ppad-base16-version:            0.2.0+version:            0.2.1 synopsis:           Pure base16 encoding and decoding on bytestrings. license:            MIT license-file:       LICENSE@@ -8,11 +8,16 @@ maintainer:         jared@ppad.tech category:           Cryptography build-type:         Simple-tested-with:        GHC == 9.8.1+tested-with:        GHC == { 9.10.3 } extra-doc-files:    CHANGELOG description:   Pure base16 (hexadecimal) encoding and decoding on bytestrings. +flag llvm+  description: Use GHC's LLVM backend.+  default:     False+  manual:      True+ source-repository head   type:     git   location: git.ppad.tech/base16.git@@ -22,6 +27,8 @@   hs-source-dirs:   lib   ghc-options:       -Wall+  if flag(llvm)+    ghc-options: -fllvm -O2   exposed-modules:       Data.ByteString.Base16   build-depends: