Skip to content

Commit 5d4eafc

Browse files
committed
Make formatting consistent
1 parent 0b7b5c2 commit 5d4eafc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Data/Text.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ span p t = case span_ p t of
13411341
-- >>> T.spanEnd (=='0') "AB000"
13421342
-- ("AB","000")
13431343
spanEnd :: (Char -> Bool) -> Text -> (Text, Text)
1344-
spanEnd p t = case spanEnd_ p t of (# hd, tl #) -> (hd, tl)
1344+
spanEnd p t = case spanEnd_ p t of (# hd,tl #) -> (hd,tl)
13451345
{-# inline spanEnd #-}
13461346

13471347
-- | /O(n)/ 'break' is like 'span', but the prefix returned is

src/Data/Text/Internal/Private.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ span_ p t@(Text arr off len) = (# hd,tl #)
3232
{-# INLINE span_ #-}
3333

3434
spanEnd_ :: (Char -> Bool) -> Text -> (# Text, Text #)
35-
spanEnd_ p t@(Text arr off len) = (# hd, tl #)
35+
spanEnd_ p t@(Text arr off len) = (# hd,tl #)
3636
where hd = text arr off (k+1)
3737
tl = text arr (off+k+1) (len-k-1)
3838
!k = loop (len-1)
3939
loop !i | i >= off && p c = loop (i+d)
4040
| otherwise = i
41-
where (c, d) = reverseIter t i
41+
where (c,d) = reverseIter t i
4242
{-# INLINE spanEnd_ #-}
4343

4444
runText :: (forall s. (A.MArray s -> Int -> ST s Text) -> ST s Text) -> Text

0 commit comments

Comments
 (0)