Skip to content

Commit 15d2070

Browse files
committed
Inline stripStart earlier
because the rules for `dropWhile` are only enabled before phase 1
1 parent 7930b4b commit 15d2070

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Data/Text.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ dropAround p = dropWhile p . dropWhileEnd p
12951295
-- > dropWhile isSpace
12961296
stripStart :: Text -> Text
12971297
stripStart = dropWhile isSpace
1298-
{-# INLINE [1] stripStart #-}
1298+
{-# INLINE stripStart #-}
12991299

13001300
-- | /O(n)/ Remove trailing white space from a string. Equivalent to:
13011301
--

Data/Text/Lazy.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ dropAround p = dropWhile p . dropWhileEnd p
12411241
-- > dropWhile isSpace
12421242
stripStart :: Text -> Text
12431243
stripStart = dropWhile isSpace
1244-
{-# INLINE [1] stripStart #-}
1244+
{-# INLINE stripStart #-}
12451245

12461246
-- | /O(n)/ Remove trailing white space from a string. Equivalent to:
12471247
--

0 commit comments

Comments
 (0)