Skip to content

Commit d0d3386

Browse files
committed
scanl1 is not subject to fusion
as it does a case match.
1 parent 041cf6d commit d0d3386

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Data/Text/Lazy.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,7 @@ scanl f z t = unstream (S.scanl g z (stream t))
936936
{-# INLINE scanl #-}
937937

938938
-- | /O(n)/ 'scanl1' is a variant of 'scanl' that has no starting
939-
-- value argument. Subject to fusion. Performs replacement on
940-
-- invalid scalar values.
939+
-- value argument. Performs replacement on invalid scalar values.
941940
--
942941
-- > scanl1 f [x1, x2, ...] == [x1, x1 `f` x2, ...]
943942
scanl1 :: (Char -> Char -> Char) -> Text -> Text

0 commit comments

Comments
 (0)