Skip to content

Commit 92768ec

Browse files
committed
lazy dropAround is not subject to fusion
because `dropWhileEnd` is not.
1 parent d0d3386 commit 92768ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Text/Lazy.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ dropWhileEnd p = go
12291229

12301230
-- | /O(n)/ 'dropAround' @p@ @t@ returns the substring remaining after
12311231
-- dropping characters that satisfy the predicate @p@ from both the
1232-
-- beginning and end of @t@. Subject to fusion.
1232+
-- beginning and end of @t@.
12331233
dropAround :: (Char -> Bool) -> Text -> Text
12341234
dropAround p = dropWhile p . dropWhileEnd p
12351235
{-# INLINE [1] dropAround #-}

0 commit comments

Comments
 (0)