Skip to content

Commit 013a68d

Browse files
committed
Make formatting consistent
1 parent a44d4e0 commit 013a68d

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
@@ -1375,7 +1375,7 @@ span p t = case span_ p t of
13751375
-- >>> T.spanEnd (=='0') "AB000"
13761376
-- ("AB","000")
13771377
spanEnd :: (Char -> Bool) -> Text -> (Text, Text)
1378-
spanEnd p t = case spanEnd_ p t of (# hd, tl #) -> (hd, tl)
1378+
spanEnd p t = case spanEnd_ p t of (# hd,tl #) -> (hd,tl)
13791379
{-# inline spanEnd #-}
13801380

13811381
-- | /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)