packages feed

locators 0.3.0.2 → 0.3.0.3

raw patch · 3 files changed

+10/−9 lines, 3 filesdep +cryptonitedep +memorydep −cryptohashPVP ok

version bump matches the API change (PVP)

Dependencies added: cryptonite, memory

Dependencies removed: cryptohash

API changes (from Hackage documentation)

Files

lib/Data/Locator/Common.hs view
@@ -28,8 +28,8 @@  import Prelude hiding (toInteger) -import Crypto.Hash.SHA1 as Crypto-import qualified Data.ByteString as B+import Crypto.Hash as Crypto+import qualified Data.ByteArray as B import qualified Data.ByteString.Char8 as S import Data.List (mapAccumL) import Data.Set (Set)@@ -133,6 +133,6 @@   where     i  = concatToInteger h     h  = B.unpack h'-    h' = Crypto.hash x'+    h' = Crypto.hash x' :: Crypto.Digest Crypto.SHA1     x' = S.pack ws 
lib/Data/Locator/Hashes.hs view
@@ -23,9 +23,9 @@  import Prelude hiding (toInteger) -import Crypto.Hash.SHA1 as Crypto+import Crypto.Hash as Crypto+import qualified Data.ByteArray as B import Data.ByteString (ByteString)-import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as S import Data.Char (chr, isDigit, isLower, isUpper, ord) import Data.Word@@ -91,7 +91,7 @@   where     i  = concatToInteger h     h  = B.unpack h'-    h' = Crypto.hash x'+    h' = Crypto.hash x' :: Crypto.Digest Crypto.SHA1     x' = S.pack ws  
locators.cabal view
@@ -1,6 +1,6 @@ cabal-version:       1.24 name:                locators-version:             0.3.0.2+version:             0.3.0.3 synopsis:            Human exchangable identifiers and locators license:             MIT license-file:        LICENSE@@ -24,9 +24,10 @@   default-language:  Haskell2010    build-depends:     base >= 4 && <5,+                     memory,                      bytestring,                      containers,-                     cryptohash+                     cryptonite    hs-source-dirs:    lib   include-dirs:      .@@ -59,7 +60,7 @@                      QuickCheck,                      bytestring,                      containers,-                     cryptohash,+                     cryptonite,                      locators    hs-source-dirs:    tests