@@ -27,7 +27,7 @@
27-- This module is intended to be imported @qualified@, to avoid name
27-- This module is intended to be imported @qualified@, to avoid name
28-- clashes with "Prelude" functions. eg.
28-- clashes with "Prelude" functions. eg.
30−-- > import qualified Data.Text.Lazy as B
30+-- > import qualified Data.Text.Lazy as L
32module Data.Text.Lazy
32module Data.Text.Lazy
@@ -518,6 +518,9 @@ reverse = rev Empty
518 rev a (Chunk t ts) = rev (Chunk (T.reverse t) a) ts
518 rev a (Chunk t ts) = rev (Chunk (T.reverse t) a) ts
520-- | /O(m+n)/ Replace every occurrence of one substring with another.
520-- | /O(m+n)/ Replace every occurrence of one substring with another.
522+-- In (unlikely) bad cases, this function's time complexity degrades
521replace :: Text -- ^ Text to search for
524replace :: Text -- ^ Text to search for
522 -> Text -- ^ Replacement text
525 -> Text -- ^ Replacement text
523 -> Text -- ^ Input text
526 -> Text -- ^ Input text