Skip to content

Commit 6ce153b

Browse files
committed
removing BangPatterns.
1 parent a186705 commit 6ce153b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Network/Socket/ByteString/IO.hsc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE BangPatterns #-}
21
{-# LANGUAGE RecordWildCards #-}
32
{-# LANGUAGE OverloadedStrings #-}
43

@@ -294,9 +293,9 @@ withWSABuffromBS cs f = withBufSizs cs $ \bufsizs -> withWSABuf bufsizs f
294293
withBufSizs :: [ByteString] -> ([(Ptr Word8, Int)] -> IO a) -> IO a
295294
withBufSizs 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).

Network/Socket/ByteString/Lazy/Posix.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE BangPatterns #-}
21
{-# LANGUAGE OverloadedStrings #-}
32

43
module 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

0 commit comments

Comments
 (0)