File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1341,7 +1341,7 @@ span p t = case span_ p t of
13411341-- >>> T.spanEnd (=='0') "AB000"
13421342-- ("AB","000")
13431343spanEnd :: (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
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ span_ p t@(Text arr off len) = (# hd,tl #)
3232{-# INLINE span_ #-}
3333
3434spanEnd_ :: (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
4444runText :: (forall s . (A. MArray s -> Int -> ST s Text ) -> ST s Text ) -> Text
You can’t perform that action at this time.
0 commit comments