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 #-}
2
1
{-# LANGUAGE RecordWildCards #-}
3
2
{-# LANGUAGE OverloadedStrings #-}
4
3
@@ -294,9 +293,9 @@ withWSABuffromBS cs f = withBufSizs cs $ \bufsizs -> withWSABuf bufsizs f
294
293
withBufSizs :: [ByteString ] -> ([(Ptr Word8 , Int )] -> IO a ) -> IO a
295
294
withBufSizs bss0 f = loop bss0 id
296
295
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
300
299
loop bss (build . ((ptr',len) : ))
301
300
302
301
-- | Send data to the socket using sendmsg(2).
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE BangPatterns #-}
2
1
{-# LANGUAGE OverloadedStrings #-}
3
2
4
3
module Network.Socket.ByteString.Lazy.Posix (
@@ -34,7 +33,7 @@ send s lbs = do
34
33
where
35
34
withPokes ss p f = loop ss p 0 0
36
35
where
37
- loop (c: cs) q k ! niovs
36
+ loop (c: cs) q k niovs
38
37
| k < maxNumBytes = unsafeUseAsCStringLen c $ \ (ptr, len) -> do
39
38
poke q $ IOVec (castPtr ptr) (fromIntegral len)
40
39
loop cs
You can’t perform that action at this time.
0 commit comments