packages feed

cryptohash-sha256 0.11.102.0 → 0.11.102.1

raw patch · 2 files changed

+22/−8 lines, 2 filesdep ~basedep ~bytestringdep ~criterionnew-uploaderPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, bytestring, criterion, tasty, tasty-quickcheck

API changes (from Hackage documentation)

Files

cryptohash-sha256.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.0 name:                cryptohash-sha256-version:             0.11.102.0+version:             0.11.102.1  synopsis:            Fast, pure and practical SHA-256 implementation description: {@@ -56,9 +56,12 @@                    , GHC == 8.2.2                    , GHC == 8.4.4                    , GHC == 8.6.5-                   , GHC == 8.8.3-                   , GHC == 8.10.1+                   , GHC == 8.8.4+                   , GHC == 8.10.4+                   , GHC == 9.0.1+                   , GHC == 9.2.0.20210821 + extra-source-files:  cbits/hs_sha256.h                      changelog.md @@ -81,7 +84,7 @@    ghc-options:       -Wall -  build-depends:     base              >= 4.5 && < 4.15+  build-depends:     base              >= 4.5 && < 4.17    exposed-modules:   Crypto.Hash.SHA256 @@ -130,7 +133,7 @@                     , base16-bytestring ^>= 0.1.1 || ^>= 1.0.0                    , SHA               ^>= 1.6.4-                   , tasty             ^>= 1.1+                   , tasty             ^>= 1.4                    , tasty-quickcheck  ^>= 0.10                    , tasty-hunit       ^>= 0.10 @@ -141,8 +144,10 @@   main-is:           bench-sha256.hs   hs-source-dirs:    src-bench   build-depends:     cryptohash-sha256-                   , cryptohash-sha256-pure ^>= 0.1.0                    , SHA               ^>= 1.6.4                    , base-                   , bytestring+                   , bytestring        ^>= 0.10                    , criterion         ^>= 1.5++  -- not yet public+  -- build-depends: cryptohash-sha256-pure ^>= 0.1.0
src-bench/bench-sha256.hs view
@@ -1,12 +1,16 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE PackageImports #-}  import           Criterion.Main  import qualified "cryptohash-sha256"      Crypto.Hash.SHA256        as IUT-import qualified "cryptohash-sha256-pure" Crypto.Hash.SHA256.Legacy as Pure import qualified Data.Digest.Pure.SHA                               as REF +#ifdef VERSION_cryptohash_sha256_pure+import qualified "cryptohash-sha256-pure" Crypto.Hash.SHA256.Legacy as Pure+#endif+ import qualified Data.ByteString      as B import qualified Data.ByteString.Lazy as L @@ -16,11 +20,13 @@     bs = B.replicate sz 0     msg = "bs-" ++ show sz +#ifdef VERSION_cryptohash_sha256_pure benchSize'Pure :: Int -> Benchmark benchSize'Pure sz = bs `seq` bench msg (whnf Pure.hash bs)   where     bs = B.replicate sz 0     msg = "bs-" ++ show sz+#endif  benchSize'REF :: Int -> Benchmark benchSize'REF sz = bs `seq` bench msg (whnf REF.sha256 bs)@@ -50,6 +56,8 @@           , L.length lbs64x256  `seq` bench "lbs64x256"  (whnf IUT.hashlazy lbs64x256)           , L.length lbs64x4096 `seq` bench "lbs64x4096" (whnf IUT.hashlazy lbs64x4096)           ]++#ifdef VERSION_cryptohash_sha256_pure         , bgroup "cryptohash-sha256-pure"           [ benchSize'Pure 0           , benchSize'Pure 32@@ -66,6 +74,7 @@           , L.length lbs64x256  `seq` bench "lbs64x256"  (whnf Pure.hashlazy lbs64x256)           , L.length lbs64x4096 `seq` bench "lbs64x4096" (whnf Pure.hashlazy lbs64x4096)           ]+#endif         , bgroup "SHA"           [ benchSize'REF 0           , benchSize'REF 32