Skip to content

Commit b43d295

Browse files
author
Jaro Reinders
committed
Remove some points
1 parent 2ef63df commit b43d295

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Data/ByteString/Internal.hs

+6-6
Original file line numberDiff line numberDiff line change
@@ -339,17 +339,17 @@ packChars cs = unsafePackLenChars (List.length cs) cs
339339
#-}
340340

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

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

355355

0 commit comments

Comments
 (0)