File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -339,17 +339,17 @@ packChars cs = unsafePackLenChars (List.length cs) cs
339
339
#-}
340
340
341
341
unsafePackLenBytes :: Int -> [Word8 ] -> ByteString
342
- unsafePackLenBytes len xs =
343
- unsafeCreate len $ \ p0 -> foldr
342
+ unsafePackLenBytes len =
343
+ unsafeCreate len . foldr
344
344
(\ x go p -> poke p x >> go (p `plusPtr` 1 ))
345
- (\ _ -> return () ) xs p0
345
+ (\ _ -> return () )
346
346
{-# INLINE unsafePackLenBytes #-}
347
347
348
348
unsafePackLenChars :: Int -> [Char ] -> ByteString
349
- unsafePackLenChars len cs =
350
- unsafeCreate len $ \ p0 -> foldr
349
+ unsafePackLenChars len =
350
+ unsafeCreate len . foldr
351
351
(\ x go p -> poke p (c2w x) >> go (p `plusPtr` 1 ))
352
- (\ _ -> return () ) cs p0
352
+ (\ _ -> return () )
353
353
{-# INLINE unsafePackLenChars #-}
354
354
355
355
You can’t perform that action at this time.
0 commit comments