diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/BitTorrent/Exchange/Session.hs | 9 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Wire.hs | 5 |
2 files changed, 2 insertions, 12 deletions
diff --git a/src/Network/BitTorrent/Exchange/Session.hs b/src/Network/BitTorrent/Exchange/Session.hs index b6ee800a..88554807 100644 --- a/src/Network/BitTorrent/Exchange/Session.hs +++ b/src/Network/BitTorrent/Exchange/Session.hs | |||
@@ -16,19 +16,13 @@ import Control.Exception hiding (Handler) | |||
16 | import Control.Lens | 16 | import Control.Lens |
17 | import Control.Monad.Logger | 17 | import Control.Monad.Logger |
18 | import Control.Monad.Reader | 18 | import Control.Monad.Reader |
19 | import Control.Monad.State | ||
20 | import Data.ByteString as BS | 19 | import Data.ByteString as BS |
21 | import Data.ByteString.Lazy as BL | 20 | import Data.ByteString.Lazy as BL |
22 | import Data.Conduit | 21 | import Data.Conduit |
23 | import Data.Conduit.List as CL (iterM) | 22 | import Data.Conduit.List as CL (iterM) |
24 | import Data.Function | ||
25 | import Data.IORef | ||
26 | import Data.List as L | ||
27 | import Data.Maybe | 23 | import Data.Maybe |
28 | import Data.Map as M | 24 | import Data.Map as M |
29 | import Data.Monoid | 25 | import Data.Monoid |
30 | import Data.Ord | ||
31 | import Data.Set as S | ||
32 | import Data.Text as T | 26 | import Data.Text as T |
33 | import Data.Typeable | 27 | import Data.Typeable |
34 | import Text.PrettyPrint hiding ((<>)) | 28 | import Text.PrettyPrint hiding ((<>)) |
@@ -40,9 +34,8 @@ import Data.Torrent (InfoDict (..)) | |||
40 | import Data.Torrent.Bitfield as BF | 34 | import Data.Torrent.Bitfield as BF |
41 | import Data.Torrent.InfoHash | 35 | import Data.Torrent.InfoHash |
42 | import Data.Torrent.Piece | 36 | import Data.Torrent.Piece |
43 | import qualified Data.Torrent.Piece as Torrent (Piece (Piece)) | 37 | import qualified Data.Torrent.Piece as Torrent (Piece ()) |
44 | import Network.BitTorrent.Core | 38 | import Network.BitTorrent.Core |
45 | import Network.BitTorrent.Exchange.Assembler | ||
46 | import Network.BitTorrent.Exchange.Block as Block | 39 | import Network.BitTorrent.Exchange.Block as Block |
47 | import Network.BitTorrent.Exchange.Message as Message | 40 | import Network.BitTorrent.Exchange.Message as Message |
48 | import Network.BitTorrent.Exchange.Session.Metadata as Metadata | 41 | import Network.BitTorrent.Exchange.Session.Metadata as Metadata |
diff --git a/src/Network/BitTorrent/Exchange/Wire.hs b/src/Network/BitTorrent/Exchange/Wire.hs index 411cd598..27915724 100644 --- a/src/Network/BitTorrent/Exchange/Wire.hs +++ b/src/Network/BitTorrent/Exchange/Wire.hs | |||
@@ -98,15 +98,12 @@ import Network.Socket hiding (Connected) | |||
98 | import Network.Socket.ByteString as BS | 98 | import Network.Socket.ByteString as BS |
99 | import Text.PrettyPrint as PP hiding (($$), (<>)) | 99 | import Text.PrettyPrint as PP hiding (($$), (<>)) |
100 | import Text.PrettyPrint.Class | 100 | import Text.PrettyPrint.Class |
101 | import Text.Show.Functions | 101 | import Text.Show.Functions () |
102 | import System.Log.FastLogger (ToLogStr(..)) | 102 | import System.Log.FastLogger (ToLogStr(..)) |
103 | import System.Timeout | 103 | import System.Timeout |
104 | 104 | ||
105 | import Data.BEncode as BE | ||
106 | import Data.Torrent | ||
107 | import Data.Torrent.Bitfield as BF | 105 | import Data.Torrent.Bitfield as BF |
108 | import Data.Torrent.InfoHash | 106 | import Data.Torrent.InfoHash |
109 | import Data.Torrent.Piece | ||
110 | import Network.BitTorrent.Core | 107 | import Network.BitTorrent.Core |
111 | import Network.BitTorrent.Exchange.Message as Msg | 108 | import Network.BitTorrent.Exchange.Message as Msg |
112 | import Network.BitTorrent.Exchange.Wire.Status | 109 | import Network.BitTorrent.Exchange.Wire.Status |