Skip to content

Commit

Permalink
Fixes phase number spacing for Char8 inlines
Browse files Browse the repository at this point in the history
  • Loading branch information
archaephyrryx committed Aug 30, 2020
1 parent 9694294 commit cccb8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/ByteString/Char8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,13 @@ elemIndices = B.elemIndices . c2w
-- returns the index of the first element in the ByteString satisfying the predicate.
findIndex :: (Char -> Bool) -> ByteString -> Maybe Int
findIndex f = B.findIndex (f . w2c)
{-# INLINE[1] findIndex #-}
{-# INLINE [1] findIndex #-}

-- | The 'findIndices' function extends 'findIndex', by returning the
-- indices of all elements satisfying the predicate, in ascending order.
findIndices :: (Char -> Bool) -> ByteString -> [Int]
findIndices f = B.findIndices (f . w2c)
{-# INLINE[1] findIndices #-}
{-# INLINE [1] findIndices #-}

#if MIN_VERSION_base(4,9,0)
{-# RULES
Expand Down

0 comments on commit cccb8b3

Please sign in to comment.