We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2449f0 commit f51caa3Copy full SHA for f51caa3
src/Data/Text/Lazy.hs
@@ -1683,7 +1683,7 @@ stripSuffix p t = reverse `fmap` stripPrefix (reverse p) (reverse t)
1683
-- returns a 'Text' containing those characters that satisfy the
1684
-- predicate.
1685
filter :: (Char -> Bool) -> Text -> Text
1686
-filter p = foldrChunks (\t ts -> filter_ (\arr off l -> chunk (T.Text arr off l) ts) p t) Empty
+filter p = foldrChunks (chunk . filter_ T.Text p) Empty
1687
{-# INLINE [1] filter #-}
1688
1689
{-# RULES
0 commit comments