Skip to content

Commit 38fd889

Browse files
committed
Fix some typos in @since
1 parent 7ad0e10 commit 38fd889

5 files changed

Lines changed: 30 additions & 10 deletions

File tree

vector/src/Data/Vector.hs

Lines changed: 6 additions & 2 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
@@ -1458,6 +1460,8 @@ spanR = G.spanR
14581460
-- >>> import qualified Data.Vector as V
14591461
-- >>> V.breakR (<5) $ V.generate 10 id
14601462
-- ([5,6,7,8,9],[0,1,2,3,4])
1463+
--
1464+
-- @since 0.13.2.0
14611465
breakR :: (a -> Bool) -> Vector a -> (Vector a, Vector a)
14621466
{-# INLINE breakR #-}
14631467
breakR = G.breakR
@@ -1477,7 +1481,7 @@ breakR = G.breakR
14771481
--
14781482
-- See also 'Data.List.groupBy', 'group'.
14791483
--
1480-
-- @since 0.13.0.1
1484+
-- @since 0.13.0.0
14811485
groupBy :: (a -> a -> Bool) -> Vector a -> [Vector a]
14821486
{-# INLINE groupBy #-}
14831487
groupBy = G.groupBy
@@ -1497,7 +1501,7 @@ groupBy = G.groupBy
14971501
--
14981502
-- See also 'Data.List.group'.
14991503
--
1500-
-- @since 0.13.0.1
1504+
-- @since 0.13.0.0
15011505
group :: Eq a => Vector a -> [Vector a]
15021506
{-# INLINE group #-}
15031507
group = G.groupBy (==)

vector/src/Data/Vector/Generic.hs

Lines changed: 6 additions & 2 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)
@@ -1627,6 +1629,8 @@ spanR f = breakR (not . f)
16271629
-- >>> import qualified Data.Vector.Strict as V
16281630
-- >>> V.breakR (<5) $ V.generate 10 id
16291631
-- ([5,6,7,8,9],[0,1,2,3,4])
1632+
--
1633+
-- @since 0.13.2.0
16301634
breakR :: Vector v a => (a -> Bool) -> v a -> (v a, v a)
16311635
{-# INLINE breakR #-}
16321636
breakR f xs = case findIndexR f xs of
@@ -1650,7 +1654,7 @@ breakR f xs = case findIndexR f xs of
16501654
--
16511655
-- See also 'Data.List.groupBy'.
16521656
--
1653-
-- @since 0.13.0.1
1657+
-- @since 0.13.0.0
16541658
{-# INLINE groupBy #-}
16551659
groupBy :: (Vector v a) => (a -> a -> Bool) -> v a -> [v a]
16561660
groupBy _ v | null v = []
@@ -1674,7 +1678,7 @@ groupBy f v =
16741678
--
16751679
-- See also 'Data.List.group'.
16761680
--
1677-
-- @since 0.13.0.1
1681+
-- @since 0.13.0.0
16781682
group :: (Vector v a , Eq a) => v a -> [v a]
16791683
{-# INLINE group #-}
16801684
group = groupBy (==)

vector/src/Data/Vector/Primitive.hs

Lines changed: 6 additions & 2 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
@@ -1217,6 +1219,8 @@ spanR = G.spanR
12171219
-- >>> import qualified Data.Vector.Primitive as VP
12181220
-- >>> VP.breakR (<5) $ VP.generate 10 id
12191221
-- ([5,6,7,8,9],[0,1,2,3,4])
1222+
--
1223+
-- @since 0.13.2.0
12201224
breakR :: Prim a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12211225
{-# INLINE breakR #-}
12221226
breakR = G.breakR
@@ -1236,7 +1240,7 @@ breakR = G.breakR
12361240
--
12371241
-- See also 'Data.List.groupBy', 'group'.
12381242
--
1239-
-- @since 0.13.0.1
1243+
-- @since 0.13.0.0
12401244
groupBy :: Prim a => (a -> a -> Bool) -> Vector a -> [Vector a]
12411245
{-# INLINE groupBy #-}
12421246
groupBy = G.groupBy
@@ -1256,7 +1260,7 @@ groupBy = G.groupBy
12561260
--
12571261
-- See also 'Data.List.group'.
12581262
--
1259-
-- @since 0.13.0.1
1263+
-- @since 0.13.0.0
12601264
group :: (Prim a, Eq a) => Vector a -> [Vector a]
12611265
{-# INLINE group #-}
12621266
group = G.groupBy (==)

vector/src/Data/Vector/Storable.hs

Lines changed: 6 additions & 2 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
@@ -1239,6 +1241,8 @@ spanR = G.spanR
12391241
-- >>> import qualified Data.Vector.Storable as VS
12401242
-- >>> VS.breakR (<5) $ VS.generate 10 id
12411243
-- ([5,6,7,8,9],[0,1,2,3,4])
1244+
--
1245+
-- @since 0.13.2.0
12421246
breakR :: Storable a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12431247
{-# INLINE breakR #-}
12441248
breakR = G.breakR
@@ -1258,7 +1262,7 @@ breakR = G.breakR
12581262
--
12591263
-- See also 'Data.List.groupBy', 'group'.
12601264
--
1261-
-- @since 0.13.0.1
1265+
-- @since 0.13.0.0
12621266
groupBy :: Storable a => (a -> a -> Bool) -> Vector a -> [Vector a]
12631267
{-# INLINE groupBy #-}
12641268
groupBy = G.groupBy
@@ -1278,7 +1282,7 @@ groupBy = G.groupBy
12781282
--
12791283
-- See also 'Data.List.group'.
12801284
--
1281-
-- @since 0.13.0.1
1285+
-- @since 0.13.0.0
12821286
group :: (Storable a, Eq a) => Vector a -> [Vector a]
12831287
{-# INLINE group #-}
12841288
group = G.groupBy (==)

vector/src/Data/Vector/Unboxed.hs

Lines changed: 6 additions & 2 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
@@ -1273,6 +1275,8 @@ spanR = G.spanR
12731275
-- >>> import qualified Data.Vector.Unboxed as VU
12741276
-- >>> VU.breakR (<5) $ VU.generate 10 id
12751277
-- ([5,6,7,8,9],[0,1,2,3,4])
1278+
--
1279+
-- @since 0.13.2.0
12761280
breakR :: Unbox a => (a -> Bool) -> Vector a -> (Vector a, Vector a)
12771281
{-# INLINE breakR #-}
12781282
breakR = G.breakR
@@ -1292,7 +1296,7 @@ breakR = G.breakR
12921296
--
12931297
-- See also 'Data.List.groupBy', 'group'.
12941298
--
1295-
-- @since 0.13.0.1
1299+
-- @since 0.13.0.0
12961300
groupBy :: Unbox a => (a -> a -> Bool) -> Vector a -> [Vector a]
12971301
{-# INLINE groupBy #-}
12981302
groupBy = G.groupBy
@@ -1312,7 +1316,7 @@ groupBy = G.groupBy
13121316
--
13131317
-- See also 'Data.List.group'.
13141318
--
1315-
-- @since 0.13.0.1
1319+
-- @since 0.13.0.0
13161320
group :: (Unbox a, Eq a) => Vector a -> [Vector a]
13171321
{-# INLINE group #-}
13181322
group = G.groupBy (==)

0 commit comments

Comments
 (0)