Skip to content

Commit ead529b

Browse files
committed
deleting unnecessary imports.
1 parent 9d66165 commit ead529b

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

Network/Socket/ByteString/IO.hsc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,15 @@ import qualified Data.ByteString as B
4848
import Data.ByteString.Internal (createAndTrim)
4949
import Data.ByteString.Unsafe (unsafeUseAsCStringLen)
5050
import Foreign.Marshal.Alloc (allocaBytes)
51-
import Foreign.Ptr (castPtr)
5251

5352
import Network.Socket.Buffer
5453
import Network.Socket.ByteString.Internal
5554
import Network.Socket.Imports
5655
import Network.Socket.Types
5756

5857
#if !defined(mingw32_HOST_OS)
59-
import Control.Monad (zipWithM_)
6058
import Foreign.Marshal.Array (allocaArray)
6159
import Foreign.Marshal.Utils (with)
62-
import Foreign.Ptr (Ptr, plusPtr)
63-
import Foreign.Storable (Storable(..))
6460
import Network.Socket.Internal
6561

6662
import Network.Socket.ByteString.IOVec (IOVec(..))

Network/Socket/Types.hsc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ module Network.Socket.Types (
6868
, ntohl
6969
) where
7070

71-
import Control.Monad (when)
7271
import Data.IORef (IORef, newIORef, readIORef, atomicModifyIORef', mkWeakIORef)
7372
import Foreign.C.Error (throwErrno)
7473
import Foreign.Marshal.Alloc

Network/Socket/Unix.hsc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ import Foreign.Marshal.Utils (with)
2626
import Foreign.Marshal.Alloc (alloca)
2727
#endif
2828
#ifdef DOMAIN_SOCKET_SUPPORT
29-
import Control.Monad (void)
3029
import Foreign.Marshal.Alloc (allocaBytes)
3130
import Foreign.Marshal.Array (peekArray)
32-
import Foreign.Ptr (Ptr)
33-
import Foreign.Storable (Storable(..))
3431

3532
import Network.Socket.Fcntl
3633
import Network.Socket.Internal

0 commit comments

Comments
 (0)