Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kfish committed Feb 22, 2012
1 parent 330b549 commit 0f2ea9a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
7 changes: 4 additions & 3 deletions Network/BSD.hsc
Expand Up @@ -98,9 +98,10 @@ import Network.Socket

import Control.Concurrent (MVar, newMVar, withMVar)
import Control.Exception (catch)
import Foreign.C.Error (throwErrnoIfMinus1, throwErrnoIfMinus1_)
import Foreign.C.String (CString, peekCString, peekCStringLen, withCString)
import Foreign.C.Types ( CChar, CShort )
import Foreign.C.String (CString, peekCString, withCString)
#if defined(HAVE_WINSOCK2_H) && !defined(cygwin32_HOST_OS)
import Foreign.C.Types ( CShort )
#endif
#if __GLASGOW_HASKELL__ >= 703
import Foreign.C.Types ( CInt(..), CULong(..), CSize(..) )
#else
Expand Down
9 changes: 4 additions & 5 deletions Network/Socket.hsc
Expand Up @@ -177,20 +177,19 @@ import Hugs.IO ( openFd )

import Data.Bits
import Data.List (foldl')
import Data.Word (Word8, Word16, Word32)
import Foreign.Ptr (Ptr, castPtr, nullPtr, plusPtr)
import Data.Word (Word16, Word32)
import Foreign.Ptr (Ptr, castPtr, nullPtr)
import Foreign.Storable (Storable(..))
import Foreign.C.Error
import Foreign.C.String (CString, withCString, peekCString, peekCStringLen,
castCharToCChar)
import Foreign.C.String (CString, withCString, peekCString, peekCStringLen)
import Foreign.C.Types (CUInt, CChar)
#if __GLASGOW_HASKELL__ >= 703
import Foreign.C.Types (CInt(..), CSize(..))
#else
import Foreign.C.Types (CInt, CSize)
#endif
import Foreign.Marshal.Alloc ( alloca, allocaBytes )
import Foreign.Marshal.Array ( peekArray, pokeArray, pokeArray0 )
import Foreign.Marshal.Array ( peekArray )
import Foreign.Marshal.Utils ( maybeWith, with )

import System.IO
Expand Down
9 changes: 4 additions & 5 deletions Network/URI.hs
Expand Up @@ -113,16 +113,15 @@ module Network.URI
) where

import Text.ParserCombinators.Parsec
( GenParser(..), ParseError(..)
( GenParser, ParseError
, parse, (<|>), (<?>), try
, option, many, many1, count, notFollowedBy, lookAhead
, char, satisfy, oneOf, string, letter, digit, hexDigit, eof
, option, many, many1, count, notFollowedBy
, char, satisfy, oneOf, string, eof
, unexpected
)

import Control.Monad (MonadPlus(..))
import Data.Char (ord, chr, isHexDigit, isSpace, toLower, toUpper, digitToInt)
import Data.Maybe (isJust)
import Data.Char (ord, chr, isHexDigit, toLower, toUpper, digitToInt)
import Debug.Trace (trace)
import Numeric (showIntAtBase)

Expand Down

0 comments on commit 0f2ea9a

Please sign in to comment.