File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1375,7 +1375,7 @@ span p t = case span_ p t of
13751375-- >>> T.spanEnd (=='0') "AB000"
13761376-- ("AB","000")
13771377spanEnd :: (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
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