Skip to content

Commit c2053eb

Browse files
committed
Update since-annotations
Context: #717
1 parent 91ae607 commit c2053eb

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

containers/src/Data/IntMap/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ disjoint t1@(Bin p1 m1 l1 r1) t2@(Bin p2 m2 l2 r2)
781781
-- ('compose' bc ab '!?') = (bc '!?') <=< (ab '!?')
782782
-- @
783783
--
784-
-- @since UNRELEASED
784+
-- @since 0.6.3.1
785785
compose :: IntMap c -> IntMap Int -> IntMap c
786786
compose bc !ab
787787
| null bc = empty

containers/src/Data/IntMap/Strict/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ intersectionWithKey f m1 m2
731731
-- ('compose' bc ab '!?') = (bc '!?') <=< (ab '!?')
732732
-- @
733733
--
734-
-- @since UNRELEASED
734+
-- @since 0.6.3.1
735735
compose :: IntMap c -> IntMap Int -> IntMap c
736736
compose bc !ab
737737
| null bc = empty

containers/src/Data/IntSet/Internal.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ deleteBM _ _ Nil = Nil
516516
-- @
517517
--
518518
-- Note: 'alterF' is a variant of the @at@ combinator from "Control.Lens.At".
519+
--
520+
-- @since 0.6.3.1
519521
alterF :: Functor f => (Bool -> f Bool) -> Key -> IntSet -> f IntSet
520522
alterF f k s = fmap choose (f member_)
521523
where
@@ -957,6 +959,8 @@ map f = fromList . List.map f . toList
957959
-- > and [x < y ==> f x < f y | x <- ls, y <- ls]
958960
-- > ==> mapMonotonic f s == map f s
959961
-- > where ls = toList s
962+
--
963+
-- @since 0.6.3.1
960964

961965
-- Note that for now the test is insufficient to support any fancier implementation.
962966
mapMonotonic :: (Key -> Key) -> IntSet -> IntSet

containers/src/Data/Map/Internal.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ disjoint (Bin _ k _ l r) t
21042104
-- ('compose' bc ab '!?') = (bc '!?') <=< (ab '!?')
21052105
-- @
21062106
--
2107-
-- @since UNRELEASED
2107+
-- @since 0.6.3.1
21082108
compose :: Ord b => Map b c -> Map a b -> Map a c
21092109
compose bc !ab
21102110
| null bc = empty
@@ -4282,6 +4282,7 @@ instance Foldable.Foldable (Map k) where
42824282
#endif
42834283

42844284
#if MIN_VERSION_base(4,10,0)
4285+
-- | @since 0.6.3.1
42854286
instance Bifoldable Map where
42864287
bifold = go
42874288
where go Tip = mempty

containers/src/Data/Map/Strict/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ forceMaybe m@(Just !_) = m
12161216
-- ('compose' bc ab '!?') = (bc '!?') <=< (ab '!?')
12171217
-- @
12181218
--
1219-
-- @since UNRELEASED
1219+
-- @since 0.6.3.1
12201220
compose :: Ord b => Map b c -> Map a b -> Map a c
12211221
compose bc !ab
12221222
| null bc = empty

containers/src/Data/Set/Internal.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ delete = go
612612
-- the given value.
613613
--
614614
-- Note: 'alterF' is a variant of the @at@ combinator from "Control.Lens.At".
615+
--
616+
-- @since 0.6.3.1
615617
alterF :: (Ord a, Functor f) => (Bool -> f Bool) -> a -> Set a -> f (Set a)
616618
alterF f k s = fmap choose (f member_)
617619
where

0 commit comments

Comments
 (0)