Skip to content

Commit c1ec990

Browse files
authored
Fix some typos in @since (#547)
1 parent 7ad0e10 commit c1ec990

File tree

6 files changed

+30
-22
lines changed

6 files changed

+30
-22
lines changed

vector/src/Data/Vector.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,8 @@ break = G.break
14421442
-- >>> import qualified Data.Vector as V
14431443
-- >>> V.spanR (>4) $ V.generate 10 id
14441444
-- ([5,6,7,8,9],[0,1,2,3,4])
1445+
--
1446+
-- @since 0.13.2.0
14451447
spanR :: (a -> Bool) -> Vector a -> (Vector a, Vector a)
14461448
{-# INLINE spanR #-}
14471449
spanR = G.spanR
@@ -1451,13 +1453,13 @@ spanR = G.spanR
14511453
--
14521454
-- Does not fuse.
14531455
--
1454-
-- @since NEXT_VERSION
1455-
--
14561456
-- ==== __Examples__
14571457
--
14581458
-- >>> import qualified Data.Vector as V
14591459
-- >>> V.breakR (<5) $ V.generate 10 id
14601460
-- ([5,6,7,8,9],[0,1,2,3,4])
1461+
--
1462+
-- @since 0.13.2.0
14611463
breakR :: (a -> Bool) -> Vector a -> (Vector a, Vector a)
14621464
{-# INLINE breakR #-}
14631465
breakR = G.breakR
@@ -1477,7 +1479,7 @@ breakR = G.breakR
14771479
--
14781480
-- See also 'Data.List.groupBy', 'group'.
14791481
--
1480-
-- @since 0.13.0.1
1482+
-- @since 0.13.0.0
14811483
groupBy :: (a -> a -> Bool) -> Vector a -> [Vector a]
14821484
{-# INLINE groupBy #-}
14831485
groupBy = G.groupBy
@@ -1497,7 +1499,7 @@ groupBy = G.groupBy
14971499
--
14981500
-- See also 'Data.List.group'.
14991501
--
1500-
-- @since 0.13.0.1
1502+
-- @since 0.13.0.0
15011503
group :: Eq a => Vector a -> [Vector a]
15021504
{-# INLINE group #-}
15031505
group = G.groupBy (==)

vector/src/Data/Vector/Generic.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,8 @@ break f xs = case findIndex f xs of
16111611
-- >>> import qualified Data.Vector.Strict as V
16121612
-- >>> V.spanR (>4) $ V.generate 10 id
16131613
-- ([5,6,7,8,9],[0,1,2,3,4])
1614+
--
1615+
-- @since 0.13.2.0
16141616
spanR :: Vector v a => (a -> Bool) -> v a -> (v a, v a)
16151617
{-# INLINE spanR #-}
16161618
spanR f = breakR (not . f)
@@ -1620,13 +1622,13 @@ spanR f = breakR (not . f)
16201622
--
16211623
-- Does not fuse.
16221624
--
1623-
-- @since NEXT_VERSION
1624-
--
16251625
-- ==== __Examples__
16261626
--
16271627
-- >>> import qualified Data.Vector.Strict as V
16281628
-- >>> V.breakR (<5) $ V.generate 10 id
16291629
-- ([5,6,7,8,9],[0,1,2,3,4])
1630+
--
1631+
-- @since 0.13.2.0
16301632
breakR :: Vector v a => (a -> Bool) -> v a -> (v a, v a)
16311633
{-# INLINE breakR #-}
16321634
breakR f xs = case findIndexR f xs of
@@ -1650,7 +1652,7 @@ breakR f xs = case findIndexR f xs of
16501652
--
16511653
-- See also 'Data.List.groupBy'.
16521654
--
1653-
-- @since 0.13.0.1
1655+
-- @since 0.13.0.0
16541656
{-# INLINE groupBy #-}
16551657
groupBy :: (Vector v a) => (a -> a -> Bool) -> v a -> [v a]
16561658
groupBy _ v | null v = []
@@ -1674,7 +1676,7 @@ groupBy f v =
16741676
--
16751677
-- See also 'Data.List.group'.
16761678
--
1677-
-- @since 0.13.0.1
1679+
-- @since 0.13.0.0
16781680
group :: (Vector v a , Eq a) => v a -> [v a]
16791681
{-# INLINE group #-}
16801682
group = groupBy (==)

vector/src/Data/Vector/Primitive.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,8 @@ break = G.break
12011201
-- >>> import qualified Data.Vector.Primitive as VP
12021202
-- >>> VP.spanR (>4) $ VP.generate 10 id
12031203
-- ([5,6,7,8,9],[0,1,2,3,4])
1204+
--
1205+
-- @since 0.13.2.0
12041206
spanR :: Prim a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12051207
{-# INLINE spanR #-}
12061208
spanR = G.spanR
@@ -1210,13 +1212,13 @@ spanR = G.spanR
12101212
--
12111213
-- Does not fuse.
12121214
--
1213-
-- @since NEXT_VERSION
1214-
--
12151215
-- ==== __Examples__
12161216
--
12171217
-- >>> import qualified Data.Vector.Primitive as VP
12181218
-- >>> VP.breakR (<5) $ VP.generate 10 id
12191219
-- ([5,6,7,8,9],[0,1,2,3,4])
1220+
--
1221+
-- @since 0.13.2.0
12201222
breakR :: Prim a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12211223
{-# INLINE breakR #-}
12221224
breakR = G.breakR
@@ -1236,7 +1238,7 @@ breakR = G.breakR
12361238
--
12371239
-- See also 'Data.List.groupBy', 'group'.
12381240
--
1239-
-- @since 0.13.0.1
1241+
-- @since 0.13.0.0
12401242
groupBy :: Prim a => (a -> a -> Bool) -> Vector a -> [Vector a]
12411243
{-# INLINE groupBy #-}
12421244
groupBy = G.groupBy
@@ -1256,7 +1258,7 @@ groupBy = G.groupBy
12561258
--
12571259
-- See also 'Data.List.group'.
12581260
--
1259-
-- @since 0.13.0.1
1261+
-- @since 0.13.0.0
12601262
group :: (Prim a, Eq a) => Vector a -> [Vector a]
12611263
{-# INLINE group #-}
12621264
group = G.groupBy (==)

vector/src/Data/Vector/Storable.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,8 @@ break = G.break
12231223
-- >>> import qualified Data.Vector.Storable as VS
12241224
-- >>> VS.spanR (>4) $ VS.generate 10 id
12251225
-- ([5,6,7,8,9],[0,1,2,3,4])
1226+
--
1227+
-- @since 0.13.2.0
12261228
spanR :: Storable a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12271229
{-# INLINE spanR #-}
12281230
spanR = G.spanR
@@ -1232,13 +1234,13 @@ spanR = G.spanR
12321234
--
12331235
-- Does not fuse.
12341236
--
1235-
-- @since NEXT_VERSION
1236-
--
12371237
-- ==== __Examples__
12381238
--
12391239
-- >>> import qualified Data.Vector.Storable as VS
12401240
-- >>> VS.breakR (<5) $ VS.generate 10 id
12411241
-- ([5,6,7,8,9],[0,1,2,3,4])
1242+
--
1243+
-- @since 0.13.2.0
12421244
breakR :: Storable a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12431245
{-# INLINE breakR #-}
12441246
breakR = G.breakR
@@ -1258,7 +1260,7 @@ breakR = G.breakR
12581260
--
12591261
-- See also 'Data.List.groupBy', 'group'.
12601262
--
1261-
-- @since 0.13.0.1
1263+
-- @since 0.13.0.0
12621264
groupBy :: Storable a => (a -> a -> Bool) -> Vector a -> [Vector a]
12631265
{-# INLINE groupBy #-}
12641266
groupBy = G.groupBy
@@ -1278,7 +1280,7 @@ groupBy = G.groupBy
12781280
--
12791281
-- See also 'Data.List.group'.
12801282
--
1281-
-- @since 0.13.0.1
1283+
-- @since 0.13.0.0
12821284
group :: (Storable a, Eq a) => Vector a -> [Vector a]
12831285
{-# INLINE group #-}
12841286
group = G.groupBy (==)

vector/src/Data/Vector/Strict.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,8 +1589,6 @@ spanR = G.spanR
15891589
--
15901590
-- Does not fuse.
15911591
--
1592-
-- @since 0.13.2.0
1593-
--
15941592
-- ==== __Examples__
15951593
--
15961594
-- >>> import qualified Data.Vector as V

vector/src/Data/Vector/Unboxed.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,8 @@ break = G.break
12571257
-- >>> import qualified Data.Vector.Unboxed as VU
12581258
-- >>> VU.spanR (>4) $ VU.generate 10 id
12591259
-- ([5,6,7,8,9],[0,1,2,3,4])
1260+
--
1261+
-- @since 0.13.2.0
12601262
spanR :: Unbox a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12611263
{-# INLINE spanR #-}
12621264
spanR = G.spanR
@@ -1266,13 +1268,13 @@ spanR = G.spanR
12661268
--
12671269
-- Does not fuse.
12681270
--
1269-
-- @since NEXT_VERSION
1270-
--
12711271
-- ==== __Examples__
12721272
--
12731273
-- >>> import qualified Data.Vector.Unboxed as VU
12741274
-- >>> VU.breakR (<5) $ VU.generate 10 id
12751275
-- ([5,6,7,8,9],[0,1,2,3,4])
1276+
--
1277+
-- @since 0.13.2.0
12761278
breakR :: Unbox a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12771279
{-# INLINE breakR #-}
12781280
breakR = G.breakR
@@ -1292,7 +1294,7 @@ breakR = G.breakR
12921294
--
12931295
-- See also 'Data.List.groupBy', 'group'.
12941296
--
1295-
-- @since 0.13.0.1
1297+
-- @since 0.13.0.0
12961298
groupBy :: Unbox a => (a -> a -> Bool) -> Vector a -> [Vector a]
12971299
{-# INLINE groupBy #-}
12981300
groupBy = G.groupBy
@@ -1312,7 +1314,7 @@ groupBy = G.groupBy
13121314
--
13131315
-- See also 'Data.List.group'.
13141316
--
1315-
-- @since 0.13.0.1
1317+
-- @since 0.13.0.0
13161318
group :: (Unbox a, Eq a) => Vector a -> [Vector a]
13171319
{-# INLINE group #-}
13181320
group = G.groupBy (==)

0 commit comments

Comments
 (0)