Skip to content

Commit 6588174

Browse files
authored
Prepare release 0.2.14.0 (#315)
1 parent 7855c42 commit 6588174

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

CHANGES.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [0.2.14.0]
2+
3+
* [Add `HashMap.mapKeys`.](https://github.com/haskell-unordered-containers/unordered-containers/pull/308) Thanks, Marco Perone!
4+
5+
* [Add instances for `NFData1` and `NFData2`.](https://github.com/haskell-unordered-containers/unordered-containers/pull/314) Thanks, Isaac Elliott and Oleg Grenrus!
6+
7+
* [Fix `@since`-annotation for `compose`.](https://github.com/haskell-unordered-containers/unordered-containers/pull/303) Thanks, @Mathnerd314!
8+
9+
[0.2.14.0]: https://github.com/haskell-unordered-containers/unordered-containers/compare/v0.2.13.0...v0.2.14.0
10+
111
## [0.2.13.0]
212

313
* [Add `HashMap.compose`.](https://github.com/haskell-unordered-containers/unordered-containers/pull/299) Thanks Alexandre Esteves.

Data/HashMap/Internal.hs

+6
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ instance (NFData k, NFData v) => NFData (Leaf k v) where
206206
rnf (L k v) = rnf k `seq` rnf v
207207

208208
#if MIN_VERSION_deepseq(1,4,3)
209+
-- | @since 0.2.14.0
209210
instance NFData k => NF.NFData1 (Leaf k) where
210211
liftRnf rnf2 = NF.liftRnf2 rnf rnf2
211212

213+
-- | @since 0.2.14.0
212214
instance NF.NFData2 Leaf where
213215
liftRnf2 rnf1 rnf2 (L k v) = rnf1 k `seq` rnf2 v
214216
#endif
@@ -236,9 +238,11 @@ instance (NFData k, NFData v) => NFData (HashMap k v) where
236238
rnf (Collision _ ary) = rnf ary
237239

238240
#if MIN_VERSION_deepseq(1,4,3)
241+
-- | @since 0.2.14.0
239242
instance NFData k => NF.NFData1 (HashMap k) where
240243
liftRnf rnf2 = NF.liftRnf2 rnf rnf2
241244

245+
-- | @since 0.2.14.0
242246
instance NF.NFData2 HashMap where
243247
liftRnf2 _ _ Empty = ()
244248
liftRnf2 rnf1 rnf2 (BitmapIndexed _ ary) = NF.liftRnf (NF.liftRnf2 rnf1 rnf2) ary
@@ -1789,6 +1793,8 @@ traverseWithKey f = go
17891793
-- fromList [(1,"c")]
17901794
-- >>> mapKeys (\ _ -> 3) (fromList [(1,"b"), (2,"a"), (3,"d"), (4,"c")])
17911795
-- fromList [(3,"c")]
1796+
--
1797+
-- @since 0.2.14.0
17921798
mapKeys :: (Eq k2, Hashable k2) => (k1 -> k2) -> HashMap k1 v -> HashMap k2 v
17931799
mapKeys f = fromList . foldrWithKey (\k x xs -> (f k, x) : xs) []
17941800

Data/HashMap/Internal/Array.hs

+1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ rnfArray ary0 = go ary0 n0 0
255255
{-# INLINE rnfArray #-}
256256

257257
#if MIN_VERSION_deepseq(1,4,3)
258+
-- | @since 0.2.14.0
258259
instance NF.NFData1 Array where
259260
liftRnf = liftRnfArray
260261

Data/HashSet/Internal.hs

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ instance (NFData a) => NFData (HashSet a) where
143143
{-# INLINE rnf #-}
144144

145145
#if MIN_VERSION_deepseq(1,4,3)
146+
-- | @since 0.2.14.0
146147
instance NF.NFData1 HashSet where
147148
liftRnf rnf1 = NF.liftRnf2 rnf1 rnf . asMap
148149
#endif

unordered-containers.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: unordered-containers
2-
version: 0.2.13.0
2+
version: 0.2.14.0
33
synopsis: Efficient hashing-based container types
44
description:
55
Efficient hashing-based container types. The containers have been

0 commit comments

Comments
 (0)