@@ -576,13 +576,13 @@ toUpper t = unstream (S.toUpper (stream t))
576576-- (typically the left-identity of the operator), and a 'Text',
577577-- reduces the 'Text' using the binary operator, from left to right.
578578-- Subject to array fusion.
579−foldl :: (b -> Char -> b) -> b -> Text -> b
579+foldl :: (a -> Char -> a) -> a -> Text -> a
580580foldl f z t = S.foldl f z (stream t)
581581{-# INLINE foldl #-}
582582
583583-- | /O(n)/ A strict version of 'foldl'.
584584-- Subject to array fusion.
585−foldl' :: (b -> Char -> b) -> b -> Text -> b
585+foldl' :: (a -> Char -> a) -> a -> Text -> a
586586foldl' f z t = S.foldl' f z (stream t)
587587{-# INLINE foldl' #-}
588588
@@ -603,7 +603,7 @@ foldl1' f t = S.foldl1' f (stream t)
603603-- (typically the right-identity of the operator), and a 'Text',
604604-- reduces the 'Text' using the binary operator, from right to left.
605605-- Subject to array fusion.
606−foldr :: (Char -> b -> b) -> b -> Text -> b
606+foldr :: (Char -> a -> a) -> a -> Text -> a
607607foldr f z t = S.foldr f z (stream t)
608608{-# INLINE foldr #-}
609609