Skip to content

Commit 2ef63df

Browse files
author
Jaro Reinders
committed
Fix name shadowing warnings
1 parent a04d938 commit 2ef63df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Data/ByteString/Internal.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -340,16 +340,16 @@ packChars cs = unsafePackLenChars (List.length cs) cs
340340

341341
unsafePackLenBytes :: Int -> [Word8] -> ByteString
342342
unsafePackLenBytes len xs =
343-
unsafeCreate len $ \p -> foldr
343+
unsafeCreate len $ \p0 -> foldr
344344
(\x go p -> poke p x >> go (p `plusPtr` 1))
345-
(\_ -> return ()) xs p
345+
(\_ -> return ()) xs p0
346346
{-# INLINE unsafePackLenBytes #-}
347347

348348
unsafePackLenChars :: Int -> [Char] -> ByteString
349349
unsafePackLenChars len cs =
350-
unsafeCreate len $ \p -> foldr
350+
unsafeCreate len $ \p0 -> foldr
351351
(\x go p -> poke p (c2w x) >> go (p `plusPtr` 1))
352-
(\_ -> return ()) cs p
352+
(\_ -> return ()) cs p0
353353
{-# INLINE unsafePackLenChars #-}
354354

355355

0 commit comments

Comments
 (0)