on master help sign in
Fix some typos
8758ad9Julien Cretel
Data/Text.hs+2−2
@@ -883,13 +883,13 @@ concatMap f = concat . foldr ((:) . f) []
883{-# INLINE concatMap #-}
883{-# INLINE concatMap #-}
884
884
885-- | /O(n)/ 'any' @p@ @t@ determines whether any character in the
885-- | /O(n)/ 'any' @p@ @t@ determines whether any character in the
886−-- 'Text' @t@ satisifes the predicate @p@. Subject to fusion.
886+-- 'Text' @t@ satisfies the predicate @p@. Subject to fusion.
887any :: (Char -> Bool) -> Text -> Bool
887any :: (Char -> Bool) -> Text -> Bool
888any p t = S.any p (stream t)
888any p t = S.any p (stream t)
889{-# INLINE any #-}
889{-# INLINE any #-}
890
890
891-- | /O(n)/ 'all' @p@ @t@ determines whether all characters in the
891-- | /O(n)/ 'all' @p@ @t@ determines whether all characters in the
892−-- 'Text' @t@ satisify the predicate @p@. Subject to fusion.
892+-- 'Text' @t@ satisfy the predicate @p@. Subject to fusion.
893all :: (Char -> Bool) -> Text -> Bool
893all :: (Char -> Bool) -> Text -> Bool
894all p t = S.all p (stream t)
894all p t = S.all p (stream t)
895{-# INLINE all #-}
895{-# INLINE all #-}
Data/Text/Internal/Fusion/Common.hs+2−2
@@ -593,7 +593,7 @@ concatMap f = foldr (append . f) empty
593{-# INLINE [0] concatMap #-}
593{-# INLINE [0] concatMap #-}
594
594
595-- | /O(n)/ any @p @xs determines if any character in the stream
595-- | /O(n)/ any @p @xs determines if any character in the stream
596−-- @xs@ satisifes the predicate @p@.
596+-- @xs@ satisfies the predicate @p@.
597any :: (Char -> Bool) -> Stream Char -> Bool
597any :: (Char -> Bool) -> Stream Char -> Bool
598any p (Stream next0 s0 _len) = loop_any s0
598any p (Stream next0 s0 _len) = loop_any s0
599 where
599 where
@@ -605,7 +605,7 @@ any p (Stream next0 s0 _len) = loop_any s0
605{-# INLINE [0] any #-}
605{-# INLINE [0] any #-}
606
606
607-- | /O(n)/ all @p @xs determines if all characters in the 'Text'
607-- | /O(n)/ all @p @xs determines if all characters in the 'Text'
608−-- @xs@ satisify the predicate @p@.
608+-- @xs@ satisfy the predicate @p@.
609all :: (Char -> Bool) -> Stream Char -> Bool
609all :: (Char -> Bool) -> Stream Char -> Bool
610all p (Stream next0 s0 _len) = loop_all s0
610all p (Stream next0 s0 _len) = loop_all s0
611 where
611 where
Data/Text/Lazy.hs+2−2
@@ -852,13 +852,13 @@ concatMap f = concat . foldr ((:) . f) []
852{-# INLINE concatMap #-}
852{-# INLINE concatMap #-}
853
853
854-- | /O(n)/ 'any' @p@ @t@ determines whether any character in the
854-- | /O(n)/ 'any' @p@ @t@ determines whether any character in the
855−-- 'Text' @t@ satisifes the predicate @p@. Subject to fusion.
855+-- 'Text' @t@ satisfies the predicate @p@. Subject to fusion.
856any :: (Char -> Bool) -> Text -> Bool
856any :: (Char -> Bool) -> Text -> Bool
857any p t = S.any p (stream t)
857any p t = S.any p (stream t)
858{-# INLINE any #-}
858{-# INLINE any #-}
859
859
860-- | /O(n)/ 'all' @p@ @t@ determines whether all characters in the
860-- | /O(n)/ 'all' @p@ @t@ determines whether all characters in the
861−-- 'Text' @t@ satisify the predicate @p@. Subject to fusion.
861+-- 'Text' @t@ satisfy the predicate @p@. Subject to fusion.
862all :: (Char -> Bool) -> Text -> Bool
862all :: (Char -> Bool) -> Text -> Bool
863all p t = S.all p (stream t)
863all p t = S.all p (stream t)
864{-# INLINE all #-}
864{-# INLINE all #-}