File tree Expand file tree Collapse file tree 8 files changed +17
-17
lines changed
vector-stream/src/Data/Stream Expand file tree Collapse file tree 8 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ left_over_vector = compile "Data\\.Vector\\.Unboxed\\.Base\\.Vector" []
166
166
-- > > readProcess "date" [] []
167
167
-- > Right "Thu Feb 7 10:03:39 PST 2008\n"
168
168
--
169
- -- The argumenst are:
169
+ -- The arguments are:
170
170
--
171
171
-- * The command to run, which must be in the $PATH, or an absolute path
172
172
--
Original file line number Diff line number Diff line change @@ -1561,7 +1561,7 @@ enumFromTo_double n m = n `seq` m `seq` Stream step ini
1561
1561
lim = m + 1 / 2 -- important to float out
1562
1562
1563
1563
-- GHC changed definition of Enum for Double in GHC8.6 so we have to
1564
- -- accomodate both definitions in order to preserve validity of
1564
+ -- accommodate both definitions in order to preserve validity of
1565
1565
-- rewrite rule
1566
1566
--
1567
1567
-- ISSUE: https://gitlab.haskell.org/ghc/ghc/issues/15081
Original file line number Diff line number Diff line change @@ -1483,14 +1483,14 @@ findIndices :: (a -> Bool) -> Vector a -> Vector Int
1483
1483
{-# INLINE findIndices #-}
1484
1484
findIndices = G. findIndices
1485
1485
1486
- -- | /O(n)/ Yield 'Just' the index of the first occurence of the given element or
1486
+ -- | /O(n)/ Yield 'Just' the index of the first occurrence of the given element or
1487
1487
-- 'Nothing' if the vector does not contain the element. This is a specialised
1488
1488
-- version of 'findIndex'.
1489
1489
elemIndex :: Eq a => a -> Vector a -> Maybe Int
1490
1490
{-# INLINE elemIndex #-}
1491
1491
elemIndex = G. elemIndex
1492
1492
1493
- -- | /O(n)/ Yield the indices of all occurences of the given element in
1493
+ -- | /O(n)/ Yield the indices of all occurrences of the given element in
1494
1494
-- ascending order. This is a specialised version of 'findIndices'.
1495
1495
elemIndices :: Eq a => a -> Vector a -> Vector Int
1496
1496
{-# INLINE elemIndices #-}
@@ -1563,7 +1563,7 @@ ifoldr' = G.ifoldr'
1563
1563
1564
1564
-- | /O(n)/ Map each element of the structure to a monoid and combine
1565
1565
-- the results. It uses the same implementation as the corresponding method
1566
- -- of the 'Foldable' type cless . Note that it's implemented in terms of 'foldr'
1566
+ -- of the 'Foldable' type class . Note that it's implemented in terms of 'foldr'
1567
1567
-- and won't fuse with functions that traverse the vector from left to
1568
1568
-- right ('map', 'generate', etc.).
1569
1569
--
Original file line number Diff line number Diff line change @@ -732,7 +732,7 @@ postscanl' :: Monad m => (a -> b -> a) -> a -> Bundle m v b -> Bundle m v a
732
732
{-# INLINE postscanl' #-}
733
733
postscanl' f = postscanlM' (\ a b -> return (f a b))
734
734
735
- -- | Suffix scan with strict acccumulator and a monadic operator
735
+ -- | Suffix scan with strict accumulator and a monadic operator
736
736
postscanlM' :: Monad m => (a -> b -> m a ) -> a -> Bundle m v b -> Bundle m v a
737
737
{-# INLINE_FUSED postscanlM' #-}
738
738
postscanlM' f z Bundle {sElems = s, sSize = sz} = fromStream (S. postscanlM' f z s) sz
@@ -1024,7 +1024,7 @@ enumFromTo_double n m = n `seq` m `seq` fromStream (Stream step ini) (Max (len n
1024
1024
1025
1025
{-# INLINE_INNER step #-}
1026
1026
-- GHC changed definition of Enum for Double in GHC8.6 so we have to
1027
- -- accomodate both definitions in order to preserve validity of
1027
+ -- accommodate both definitions in order to preserve validity of
1028
1028
-- rewrite rule
1029
1029
--
1030
1030
-- ISSUE: https://gitlab.haskell.org/ghc/ghc/issues/15081
Original file line number Diff line number Diff line change @@ -1637,14 +1637,14 @@ findIndices f = unstream
1637
1637
. inplace (S. map fst . S. filter (f . snd ) . S. indexed) toMax
1638
1638
. stream
1639
1639
1640
- -- | /O(n)/ Yield 'Just' the index of the first occurence of the given element or
1640
+ -- | /O(n)/ Yield 'Just' the index of the first occurrence of the given element or
1641
1641
-- 'Nothing' if the vector does not contain the element. This is a specialised
1642
1642
-- version of 'findIndex'.
1643
1643
elemIndex :: (Vector v a , Eq a ) => a -> v a -> Maybe Int
1644
1644
{-# INLINE elemIndex #-}
1645
1645
elemIndex x = findIndex (x == )
1646
1646
1647
- -- | /O(n)/ Yield the indices of all occurences of the given element in
1647
+ -- | /O(n)/ Yield the indices of all occurrences of the given element in
1648
1648
-- ascending order. This is a specialised version of 'findIndices'.
1649
1649
elemIndices :: (Vector v a , Vector v Int , Eq a ) => a -> v a -> v Int
1650
1650
{-# INLINE elemIndices #-}
Original file line number Diff line number Diff line change @@ -1242,14 +1242,14 @@ findIndices :: Prim a => (a -> Bool) -> Vector a -> Vector Int
1242
1242
{-# INLINE findIndices #-}
1243
1243
findIndices = G. findIndices
1244
1244
1245
- -- | /O(n)/ Yield 'Just' the index of the first occurence of the given element or
1245
+ -- | /O(n)/ Yield 'Just' the index of the first occurrence of the given element or
1246
1246
-- 'Nothing' if the vector does not contain the element. This is a specialised
1247
1247
-- version of 'findIndex'.
1248
1248
elemIndex :: (Prim a , Eq a ) => a -> Vector a -> Maybe Int
1249
1249
{-# INLINE elemIndex #-}
1250
1250
elemIndex = G. elemIndex
1251
1251
1252
- -- | /O(n)/ Yield the indices of all occurences of the given element in
1252
+ -- | /O(n)/ Yield the indices of all occurrences of the given element in
1253
1253
-- ascending order. This is a specialised version of 'findIndices'.
1254
1254
elemIndices :: (Prim a , Eq a ) => a -> Vector a -> Vector Int
1255
1255
{-# INLINE elemIndices #-}
Original file line number Diff line number Diff line change @@ -1263,14 +1263,14 @@ findIndices :: Storable a => (a -> Bool) -> Vector a -> Vector Int
1263
1263
{-# INLINE findIndices #-}
1264
1264
findIndices = G. findIndices
1265
1265
1266
- -- | /O(n)/ Yield 'Just' the index of the first occurence of the given element or
1266
+ -- | /O(n)/ Yield 'Just' the index of the first occurrence of the given element or
1267
1267
-- 'Nothing' if the vector does not contain the element. This is a specialised
1268
1268
-- version of 'findIndex'.
1269
1269
elemIndex :: (Storable a , Eq a ) => a -> Vector a -> Maybe Int
1270
1270
{-# INLINE elemIndex #-}
1271
1271
elemIndex = G. elemIndex
1272
1272
1273
- -- | /O(n)/ Yield the indices of all occurences of the given element in
1273
+ -- | /O(n)/ Yield the indices of all occurrences of the given element in
1274
1274
-- ascending order. This is a specialised version of 'findIndices'.
1275
1275
elemIndices :: (Storable a , Eq a ) => a -> Vector a -> Vector Int
1276
1276
{-# INLINE elemIndices #-}
@@ -1343,7 +1343,7 @@ ifoldr' = G.ifoldr'
1343
1343
1344
1344
-- | /O(n)/ Map each element of the structure to a monoid and combine
1345
1345
-- the results. It uses the same implementation as the corresponding method
1346
- -- of the 'Foldable' type cless . Note that it's implemented in terms of 'foldr'
1346
+ -- of the 'Foldable' type class . Note that it's implemented in terms of 'foldr'
1347
1347
-- and won't fuse with functions that traverse the vector from left to
1348
1348
-- right ('map', 'generate', etc.).
1349
1349
--
Original file line number Diff line number Diff line change @@ -1142,7 +1142,7 @@ dropWhile :: Unbox a => (a -> Bool) -> Vector a -> Vector a
1142
1142
{-# INLINE dropWhile #-}
1143
1143
dropWhile = G. dropWhile
1144
1144
1145
- -- Parititioning
1145
+ -- Partitioning
1146
1146
-- -------------
1147
1147
1148
1148
-- | /O(n)/ Split the vector in two parts, the first one containing those
@@ -1253,14 +1253,14 @@ findIndices :: Unbox a => (a -> Bool) -> Vector a -> Vector Int
1253
1253
{-# INLINE findIndices #-}
1254
1254
findIndices = G. findIndices
1255
1255
1256
- -- | /O(n)/ Yield 'Just' the index of the first occurence of the given element or
1256
+ -- | /O(n)/ Yield 'Just' the index of the first occurrence of the given element or
1257
1257
-- 'Nothing' if the vector does not contain the element. This is a specialised
1258
1258
-- version of 'findIndex'.
1259
1259
elemIndex :: (Unbox a , Eq a ) => a -> Vector a -> Maybe Int
1260
1260
{-# INLINE elemIndex #-}
1261
1261
elemIndex = G. elemIndex
1262
1262
1263
- -- | /O(n)/ Yield the indices of all occurences of the given element in
1263
+ -- | /O(n)/ Yield the indices of all occurrences of the given element in
1264
1264
-- ascending order. This is a specialised version of 'findIndices'.
1265
1265
elemIndices :: (Unbox a , Eq a ) => a -> Vector a -> Vector Int
1266
1266
{-# INLINE elemIndices #-}
You can’t perform that action at this time.
0 commit comments