hashtables 1.2.3.3 → 1.2.3.4
raw patch · 5 files changed
+20/−6 lines, 5 filesdep ~basedep ~hashablenew-uploaderPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, hashable
API changes (from Hackage documentation)
Files
- changelog.md +4/−0
- hashtables.cabal +3/−3
- src/Data/HashTable/Internal/CacheLine.hs +3/−1
- src/Data/HashTable/Internal/CheapPseudoRandomBitStream.hs +6/−0
- src/Data/HashTable/Internal/UnsafeTricks.hs +4/−2
changelog.md view
@@ -1,5 +1,9 @@ # Hashtables changelog +## 1.2.3.4++Fix build with GHC 8.8.+ ## 1.2.3.3 Fix build with certain versions of `primitive` (thx again Carter)
hashtables.cabal view
@@ -1,12 +1,12 @@ Cabal-Version: 2.2 Name: hashtables-Version: 1.2.3.3+Version: 1.2.3.4 Synopsis: Mutable hash tables in the ST monad Homepage: http://github.com/gregorycollins/hashtables License: BSD-3-Clause License-file: LICENSE Author: Gregory Collins-Maintainer: greg@gregorycollins.net, mgoremeier@gmail.com+Maintainer: greg@gregorycollins.net, mgoremeier@gmail.com, erikd@mega-nerd.com Copyright: (c) 2011-2014, Google, Inc., 2016-present contributors Category: Data Build-type: Simple@@ -185,7 +185,7 @@ Data.HashTable.Internal.Linear.Bucket Build-depends: base >= 4.7 && <5,- hashable >= 1.1 && <1.2 || >= 1.2.1 && <1.3,+ hashable >= 1.1 && <1.2 || >= 1.2.1 && <1.4, primitive, vector >= 0.7 && <0.13
src/Data/HashTable/Internal/CacheLine.hs view
@@ -38,7 +38,9 @@ import Data.HashTable.Internal.Utils import GHC.Exts -#if __GLASGOW_HASKELL__ >= 707+#if __GLASGOW_HASKELL__ >= 808+-- Nothing to do here.+#elif __GLASGOW_HASKELL__ >= 707 import GHC.Exts (isTrue#) #else isTrue# :: Bool -> Bool
src/Data/HashTable/Internal/CheapPseudoRandomBitStream.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE BangPatterns #-}+{-# LANGUAGE CPP #-} module Data.HashTable.Internal.CheapPseudoRandomBitStream ( BitStream@@ -13,7 +14,12 @@ import Data.STRef import Data.Vector.Unboxed (Vector) import qualified Data.Vector.Unboxed as V++#if __GLASGOW_HASKELL__ >= 808+import Data.Word (Word32, Word64)+#else import Data.Word (Word, Word32, Word64)+#endif import Data.HashTable.Internal.Utils
src/Data/HashTable/Internal/UnsafeTricks.hs view
@@ -23,7 +23,9 @@ import GHC.Exts import Unsafe.Coerce -#if __GLASGOW_HASKELL__ >= 707+#if __GLASGOW_HASKELL__ >= 808+-- Nothing to do here.+#elif __GLASGOW_HASKELL__ >= 707 import GHC.Exts (isTrue#) #else isTrue# :: Bool -> Bool@@ -38,7 +40,7 @@ type Key a = Any #else-data Key a = Key !a +data Key a = Key !a | EmptyElement | DeletedElement deriving (Show)