File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Network/Socket/ByteString Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- {-# LANGUAGE BangPatterns #-}
21{-# LANGUAGE RecordWildCards #-}
32{-# LANGUAGE OverloadedStrings #-}
43
@@ -294,9 +293,9 @@ withWSABuffromBS cs f = withBufSizs cs $ \bufsizs -> withWSABuf bufsizs f
294293withBufSizs :: [ByteString ] -> ([(Ptr Word8 , Int )] -> IO a ) -> IO a
295294withBufSizs bss0 f = loop bss0 id
296295 where
297- loop [] ! build = f $ build []
298- loop (PS fptr off len: bss) ! build = withForeignPtr fptr $ \ ptr -> do
299- let ! ptr' = ptr `plusPtr` off
296+ loop [] build = f $ build []
297+ loop (PS fptr off len: bss) build = withForeignPtr fptr $ \ ptr -> do
298+ let ptr' = ptr `plusPtr` off
300299 loop bss (build . ((ptr',len) : ))
301300
302301-- | Send data to the socket using sendmsg(2).
Original file line number Diff line number Diff line change 1- {-# LANGUAGE BangPatterns #-}
21{-# LANGUAGE OverloadedStrings #-}
32
43module Network.Socket.ByteString.Lazy.Posix (
@@ -34,7 +33,7 @@ send s lbs = do
3433 where
3534 withPokes ss p f = loop ss p 0 0
3635 where
37- loop (c: cs) q k ! niovs
36+ loop (c: cs) q k niovs
3837 | k < maxNumBytes = unsafeUseAsCStringLen c $ \ (ptr, len) -> do
3938 poke q $ IOVec (castPtr ptr) (fromIntegral len)
4039 loop cs
You can’t perform that action at this time.
0 commit comments