packages feed

hashable 1.2.3.1 → 1.2.3.2

raw patch · 3 files changed

+17/−4 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

CHANGES.md view
@@ -1,3 +1,11 @@+## Version 1.2.3.2++ * Add support for GHC 7.10 typeRepFingerprint++## Version 1.2.3.1++ * Added support for random 1.1.*.+ ## Version 1.2.3.0   * Silence integer literal overflow warning
Data/Hashable/Class.hs view
@@ -66,7 +66,9 @@ import GHC.Generics #endif -#if __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 710+import GHC.Fingerprint.Type(Fingerprint(..))+#elif __GLASGOW_HASKELL__ >= 702 import Data.Typeable.Internal(TypeRep(..)) import GHC.Fingerprint.Type(Fingerprint(..)) #endif@@ -451,7 +453,10 @@ -- | Compute the hash of a TypeRep, in various GHC versions we can do this quickly. hashTypeRep :: TypeRep -> Int {-# INLINE hashTypeRep #-}-#if __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 710+-- Fingerprint is just the MD5, so taking any Int from it is fine+hashTypeRep tr = let Fingerprint x _ = typeRepFingerprint tr in fromIntegral x+#elif __GLASGOW_HASKELL__ >= 702 -- Fingerprint is just the MD5, so taking any Int from it is fine hashTypeRep (TypeRep (Fingerprint x _) _ _) = fromIntegral x #elif __GLASGOW_HASKELL__ >= 606
hashable.cabal view
@@ -1,5 +1,5 @@ Name:                hashable-Version:             1.2.3.1+Version:             1.2.3.2 Synopsis:            A class for types that can be converted to a hash value Description:         This package defines a class, 'Hashable', for types that                      can be converted to a hash value.  This class@@ -39,7 +39,7 @@ Library   Exposed-modules:   Data.Hashable   Other-modules:     Data.Hashable.Class-  Build-depends:     base >= 4.0 && < 5.0,+  Build-depends:     base >= 4.0 && < 4.9,                      bytestring >= 0.9 && < 0.11   if impl(ghc)     Build-depends:   ghc-prim,