File tree 5 files changed +8
-8
lines changed
containers-tests/benchmarks
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ main = do
27
27
, bench " map" $ whnf (IS. map (+ 1 )) s
28
28
, bench " filter" $ whnf (IS. filter ((== 0 ) . (`mod` 2 ))) s
29
29
, bench " partition" $ whnf (IS. partition ((== 0 ) . (`mod` 2 ))) s
30
- , bench " fold" $ whnf (IS. fold (:) [] ) s
31
30
, bench " delete" $ whnf (del elems) s
32
31
, bench " findMin" $ whnf IS. findMin s
33
32
, bench " findMax" $ whnf IS. findMax s
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ main = do
21
21
, bench " map" $ whnf (S. map (+ 1 )) s
22
22
, bench " filter" $ whnf (S. filter ((== 0 ) . (`mod` 2 ))) s
23
23
, bench " partition" $ whnf (S. partition ((== 0 ) . (`mod` 2 ))) s
24
- , bench " fold" $ whnf (S. fold (:) [] ) s
25
24
, bench " delete" $ whnf (del elems) s
26
25
, bench " findMin" $ whnf S. findMin s
27
26
, bench " findMax" $ whnf S. findMax s
Original file line number Diff line number Diff line change 28
28
* Various deprecated functions, whose definitions currently cause type errors,
29
29
have been removed. (Soumik Sarkar)
30
30
31
+ * ` Data.Set.fold ` and ` Data.IntSet.fold ` have long been documented as
32
+ deprecated and are now marked as such. They will be removed in a future
33
+ release.
34
+
31
35
### Bug fixes
32
36
33
37
* Make the package compile with MicroHs. (Lennart Augustsson)
Original file line number Diff line number Diff line change @@ -1180,10 +1180,9 @@ mapMonotonic f = fromDistinctAscList . List.map f . toAscList
1180
1180
Fold
1181
1181
--------------------------------------------------------------------}
1182
1182
-- | \(O(n)\). Fold the elements in the set using the given right-associative
1183
- -- binary operator. This function is an equivalent of 'foldr' and is present
1184
- -- for compatibility only.
1183
+ -- binary operator.
1185
1184
--
1186
- -- /Please note that fold will be deprecated in the future and removed./
1185
+ {-# DEPRECATED fold "Use Data.IntSet.foldr instead" #-}
1187
1186
fold :: (Key -> b -> b ) -> b -> IntSet -> b
1188
1187
fold = foldr
1189
1188
{-# INLINE fold #-}
Original file line number Diff line number Diff line change @@ -1027,10 +1027,9 @@ mapMonotonic f (Bin sz x l r) = Bin sz (f x) (mapMonotonic f l) (mapMonotonic f
1027
1027
Fold
1028
1028
--------------------------------------------------------------------}
1029
1029
-- | \(O(n)\). Fold the elements in the set using the given right-associative
1030
- -- binary operator. This function is an equivalent of 'foldr' and is present
1031
- -- for compatibility only.
1030
+ -- binary operator.
1032
1031
--
1033
- -- /Please note that fold will be deprecated in the future and removed./
1032
+ {-# DEPRECATED fold "Use Data.Set.foldr instead" #-}
1034
1033
fold :: (a -> b -> b ) -> b -> Set a -> b
1035
1034
fold = foldr
1036
1035
{-# INLINE fold #-}
You can’t perform that action at this time.
0 commit comments