diff options
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r-- | src/Network/BitTorrent/Client.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Client/Handle.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Client/Types.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT.hs | 3 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/ContactInfo.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Message.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Query.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Routing.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Session.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Connection.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Manager.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Message.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Session.hs | 6 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Session/Metadata.hs | 3 | ||||
-rw-r--r-- | src/Network/BitTorrent/Tracker/Message.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Tracker/RPC.hs | 4 | ||||
-rw-r--r-- | src/Network/BitTorrent/Tracker/RPC/HTTP.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/Tracker/Session.hs | 2 |
18 files changed, 18 insertions, 26 deletions
diff --git a/src/Network/BitTorrent/Client.hs b/src/Network/BitTorrent/Client.hs index bf6740c3..700289d2 100644 --- a/src/Network/BitTorrent/Client.hs +++ b/src/Network/BitTorrent/Client.hs | |||
@@ -61,8 +61,6 @@ import Data.Text | |||
61 | import Network | 61 | import Network |
62 | 62 | ||
63 | import Data.Torrent | 63 | import Data.Torrent |
64 | import Data.Torrent.InfoHash | ||
65 | import Data.Torrent.Magnet | ||
66 | import Network.BitTorrent.Client.Types | 64 | import Network.BitTorrent.Client.Types |
67 | import Network.BitTorrent.Client.Handle | 65 | import Network.BitTorrent.Client.Handle |
68 | import Network.BitTorrent.Core | 66 | import Network.BitTorrent.Core |
diff --git a/src/Network/BitTorrent/Client/Handle.hs b/src/Network/BitTorrent/Client/Handle.hs index 0d1b7f92..66baac48 100644 --- a/src/Network/BitTorrent/Client/Handle.hs +++ b/src/Network/BitTorrent/Client/Handle.hs | |||
@@ -26,8 +26,6 @@ import Data.List as L | |||
26 | import Data.HashMap.Strict as HM | 26 | import Data.HashMap.Strict as HM |
27 | 27 | ||
28 | import Data.Torrent | 28 | import Data.Torrent |
29 | import Data.Torrent.InfoHash | ||
30 | import Data.Torrent.Magnet | ||
31 | import Network.BitTorrent.Client.Types as Types | 29 | import Network.BitTorrent.Client.Types as Types |
32 | import Network.BitTorrent.DHT as DHT | 30 | import Network.BitTorrent.DHT as DHT |
33 | import Network.BitTorrent.Exchange as Exchange | 31 | import Network.BitTorrent.Exchange as Exchange |
diff --git a/src/Network/BitTorrent/Client/Types.hs b/src/Network/BitTorrent/Client/Types.hs index c019bc5f..3c1e9c9c 100644 --- a/src/Network/BitTorrent/Client/Types.hs +++ b/src/Network/BitTorrent/Client/Types.hs | |||
@@ -34,7 +34,7 @@ import Data.Ord | |||
34 | import Network | 34 | import Network |
35 | import System.Log.FastLogger | 35 | import System.Log.FastLogger |
36 | 36 | ||
37 | import Data.Torrent.InfoHash | 37 | import Data.Torrent |
38 | import Network.BitTorrent.Internal.Types as Types | 38 | import Network.BitTorrent.Internal.Types as Types |
39 | import Network.BitTorrent.Core | 39 | import Network.BitTorrent.Core |
40 | import Network.BitTorrent.DHT as DHT | 40 | import Network.BitTorrent.DHT as DHT |
diff --git a/src/Network/BitTorrent/DHT.hs b/src/Network/BitTorrent/DHT.hs index f587f7c8..b6067456 100644 --- a/src/Network/BitTorrent/DHT.hs +++ b/src/Network/BitTorrent/DHT.hs | |||
@@ -62,8 +62,7 @@ import Data.Conduit as C | |||
62 | import Data.Conduit.List as C | 62 | import Data.Conduit.List as C |
63 | import Network.Socket | 63 | import Network.Socket |
64 | 64 | ||
65 | import Data.Torrent (tNodes) | 65 | import Data.Torrent |
66 | import Data.Torrent.InfoHash | ||
67 | import Network.BitTorrent.Core | 66 | import Network.BitTorrent.Core |
68 | import Network.BitTorrent.DHT.Query | 67 | import Network.BitTorrent.DHT.Query |
69 | import Network.BitTorrent.DHT.Session | 68 | import Network.BitTorrent.DHT.Session |
diff --git a/src/Network/BitTorrent/DHT/ContactInfo.hs b/src/Network/BitTorrent/DHT/ContactInfo.hs index 2aedf900..201b84ee 100644 --- a/src/Network/BitTorrent/DHT/ContactInfo.hs +++ b/src/Network/BitTorrent/DHT/ContactInfo.hs | |||
@@ -11,7 +11,7 @@ import Data.Monoid | |||
11 | import Data.HashMap.Strict as HM | 11 | import Data.HashMap.Strict as HM |
12 | import Data.Serialize | 12 | import Data.Serialize |
13 | 13 | ||
14 | import Data.Torrent.InfoHash | 14 | import Data.Torrent |
15 | import Network.BitTorrent.Core.PeerAddr | 15 | import Network.BitTorrent.Core.PeerAddr |
16 | 16 | ||
17 | {- | 17 | {- |
diff --git a/src/Network/BitTorrent/DHT/Message.hs b/src/Network/BitTorrent/DHT/Message.hs index 7bcd00f0..06274fa7 100644 --- a/src/Network/BitTorrent/DHT/Message.hs +++ b/src/Network/BitTorrent/DHT/Message.hs | |||
@@ -92,7 +92,7 @@ import Data.Typeable | |||
92 | import Network | 92 | import Network |
93 | import Network.KRPC | 93 | import Network.KRPC |
94 | 94 | ||
95 | import Data.Torrent.InfoHash | 95 | import Data.Torrent |
96 | import Network.BitTorrent.Core | 96 | import Network.BitTorrent.Core |
97 | import Network.BitTorrent.DHT.Token | 97 | import Network.BitTorrent.DHT.Token |
98 | import Network.KRPC () | 98 | import Network.KRPC () |
diff --git a/src/Network/BitTorrent/DHT/Query.hs b/src/Network/BitTorrent/DHT/Query.hs index 48dfc15a..497c9001 100644 --- a/src/Network/BitTorrent/DHT/Query.hs +++ b/src/Network/BitTorrent/DHT/Query.hs | |||
@@ -56,7 +56,7 @@ import Text.PrettyPrint as PP hiding ((<>), ($$)) | |||
56 | import Text.PrettyPrint.Class | 56 | import Text.PrettyPrint.Class |
57 | 57 | ||
58 | import Network.KRPC hiding (Options, def) | 58 | import Network.KRPC hiding (Options, def) |
59 | import Data.Torrent.InfoHash | 59 | import Data.Torrent |
60 | import Network.BitTorrent.Core | 60 | import Network.BitTorrent.Core |
61 | import Network.BitTorrent.DHT.Message | 61 | import Network.BitTorrent.DHT.Message |
62 | import Network.BitTorrent.DHT.Routing | 62 | import Network.BitTorrent.DHT.Routing |
diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/BitTorrent/DHT/Routing.hs index 106aec31..5dc511bd 100644 --- a/src/Network/BitTorrent/DHT/Routing.hs +++ b/src/Network/BitTorrent/DHT/Routing.hs | |||
@@ -73,7 +73,7 @@ import GHC.Generics | |||
73 | import Text.PrettyPrint as PP hiding ((<>)) | 73 | import Text.PrettyPrint as PP hiding ((<>)) |
74 | import Text.PrettyPrint.Class | 74 | import Text.PrettyPrint.Class |
75 | 75 | ||
76 | import Data.Torrent.InfoHash | 76 | import Data.Torrent |
77 | import Network.BitTorrent.Core | 77 | import Network.BitTorrent.Core |
78 | 78 | ||
79 | {----------------------------------------------------------------------- | 79 | {----------------------------------------------------------------------- |
diff --git a/src/Network/BitTorrent/DHT/Session.hs b/src/Network/BitTorrent/DHT/Session.hs index 7df25739..87a6d4ea 100644 --- a/src/Network/BitTorrent/DHT/Session.hs +++ b/src/Network/BitTorrent/DHT/Session.hs | |||
@@ -91,7 +91,7 @@ import System.Random (randomIO) | |||
91 | import Text.PrettyPrint as PP hiding ((<>), ($$)) | 91 | import Text.PrettyPrint as PP hiding ((<>), ($$)) |
92 | import Text.PrettyPrint.Class | 92 | import Text.PrettyPrint.Class |
93 | 93 | ||
94 | import Data.Torrent.InfoHash | 94 | import Data.Torrent |
95 | import Network.KRPC hiding (Options, def) | 95 | import Network.KRPC hiding (Options, def) |
96 | import qualified Network.KRPC as KRPC (def) | 96 | import qualified Network.KRPC as KRPC (def) |
97 | import Network.BitTorrent.Core | 97 | import Network.BitTorrent.Core |
diff --git a/src/Network/BitTorrent/Exchange/Connection.hs b/src/Network/BitTorrent/Exchange/Connection.hs index fd9022da..42b991a0 100644 --- a/src/Network/BitTorrent/Exchange/Connection.hs +++ b/src/Network/BitTorrent/Exchange/Connection.hs | |||
@@ -136,7 +136,7 @@ import System.Log.FastLogger (ToLogStr(..)) | |||
136 | import System.Timeout | 136 | import System.Timeout |
137 | 137 | ||
138 | import Data.Torrent.Bitfield as BF | 138 | import Data.Torrent.Bitfield as BF |
139 | import Data.Torrent.InfoHash | 139 | import Data.Torrent |
140 | import Network.BitTorrent.Core | 140 | import Network.BitTorrent.Core |
141 | import Network.BitTorrent.Exchange.Message as Msg | 141 | import Network.BitTorrent.Exchange.Message as Msg |
142 | 142 | ||
diff --git a/src/Network/BitTorrent/Exchange/Manager.hs b/src/Network/BitTorrent/Exchange/Manager.hs index b9aaa818..ad7a47a2 100644 --- a/src/Network/BitTorrent/Exchange/Manager.hs +++ b/src/Network/BitTorrent/Exchange/Manager.hs | |||
@@ -12,7 +12,7 @@ import Control.Monad | |||
12 | import Data.Default | 12 | import Data.Default |
13 | import Network.Socket | 13 | import Network.Socket |
14 | 14 | ||
15 | import Data.Torrent.InfoHash | 15 | import Data.Torrent |
16 | import Network.BitTorrent.Core | 16 | import Network.BitTorrent.Core |
17 | import Network.BitTorrent.Exchange.Connection hiding (Options) | 17 | import Network.BitTorrent.Exchange.Connection hiding (Options) |
18 | import Network.BitTorrent.Exchange.Session | 18 | import Network.BitTorrent.Exchange.Session |
diff --git a/src/Network/BitTorrent/Exchange/Message.hs b/src/Network/BitTorrent/Exchange/Message.hs index d8873f95..bd5c6526 100644 --- a/src/Network/BitTorrent/Exchange/Message.hs +++ b/src/Network/BitTorrent/Exchange/Message.hs | |||
@@ -118,7 +118,7 @@ import Text.PrettyPrint as PP hiding ((<>)) | |||
118 | import Text.PrettyPrint.Class | 118 | import Text.PrettyPrint.Class |
119 | 119 | ||
120 | import Data.Torrent.Bitfield | 120 | import Data.Torrent.Bitfield |
121 | import Data.Torrent.InfoHash | 121 | import Data.Torrent |
122 | import qualified Data.Torrent.Piece as P | 122 | import qualified Data.Torrent.Piece as P |
123 | import Network.BitTorrent.Core | 123 | import Network.BitTorrent.Core |
124 | import Network.BitTorrent.Exchange.Block | 124 | import Network.BitTorrent.Exchange.Block |
diff --git a/src/Network/BitTorrent/Exchange/Session.hs b/src/Network/BitTorrent/Exchange/Session.hs index 6f480ce4..0adb08c8 100644 --- a/src/Network/BitTorrent/Exchange/Session.hs +++ b/src/Network/BitTorrent/Exchange/Session.hs | |||
@@ -45,11 +45,9 @@ import Text.PrettyPrint.Class | |||
45 | import System.Log.FastLogger (LogStr, ToLogStr (..)) | 45 | import System.Log.FastLogger (LogStr, ToLogStr (..)) |
46 | 46 | ||
47 | import Data.BEncode as BE | 47 | import Data.BEncode as BE |
48 | import Data.Torrent (InfoDict (..)) | 48 | import Data.Torrent as T |
49 | import Data.Torrent.Piece as Torrent | ||
49 | import Data.Torrent.Bitfield as BF | 50 | import Data.Torrent.Bitfield as BF |
50 | import Data.Torrent.InfoHash | ||
51 | import Data.Torrent.Piece | ||
52 | import qualified Data.Torrent.Piece as Torrent (Piece ()) | ||
53 | import Network.BitTorrent.Internal.Types | 51 | import Network.BitTorrent.Internal.Types |
54 | import Network.BitTorrent.Core | 52 | import Network.BitTorrent.Core |
55 | import Network.BitTorrent.Exchange.Block as Block | 53 | import Network.BitTorrent.Exchange.Block as Block |
diff --git a/src/Network/BitTorrent/Exchange/Session/Metadata.hs b/src/Network/BitTorrent/Exchange/Session/Metadata.hs index 79156e2e..bdd5b322 100644 --- a/src/Network/BitTorrent/Exchange/Session/Metadata.hs +++ b/src/Network/BitTorrent/Exchange/Session/Metadata.hs | |||
@@ -26,8 +26,7 @@ import Data.List as L | |||
26 | import Data.Tuple | 26 | import Data.Tuple |
27 | 27 | ||
28 | import Data.BEncode as BE | 28 | import Data.BEncode as BE |
29 | import Data.Torrent | 29 | import Data.Torrent as Torrent |
30 | import Data.Torrent.InfoHash | ||
31 | import Data.Torrent.Piece as Torrent | 30 | import Data.Torrent.Piece as Torrent |
32 | import Network.BitTorrent.Core | 31 | import Network.BitTorrent.Core |
33 | import Network.BitTorrent.Exchange.Block as Block | 32 | import Network.BitTorrent.Exchange.Block as Block |
diff --git a/src/Network/BitTorrent/Tracker/Message.hs b/src/Network/BitTorrent/Tracker/Message.hs index cdc07af8..e58f6d70 100644 --- a/src/Network/BitTorrent/Tracker/Message.hs +++ b/src/Network/BitTorrent/Tracker/Message.hs | |||
@@ -124,7 +124,7 @@ import Numeric | |||
124 | import System.Entropy | 124 | import System.Entropy |
125 | import Text.Read (readMaybe) | 125 | import Text.Read (readMaybe) |
126 | 126 | ||
127 | import Data.Torrent.InfoHash | 127 | import Data.Torrent |
128 | import Data.Torrent.Progress | 128 | import Data.Torrent.Progress |
129 | import Network.BitTorrent.Core | 129 | import Network.BitTorrent.Core |
130 | 130 | ||
diff --git a/src/Network/BitTorrent/Tracker/RPC.hs b/src/Network/BitTorrent/Tracker/RPC.hs index dc1bd4ec..9148f1f5 100644 --- a/src/Network/BitTorrent/Tracker/RPC.hs +++ b/src/Network/BitTorrent/Tracker/RPC.hs | |||
@@ -25,7 +25,7 @@ module Network.BitTorrent.Tracker.RPC | |||
25 | -- * RPC | 25 | -- * RPC |
26 | , SAnnounceQuery (..) | 26 | , SAnnounceQuery (..) |
27 | , RpcException (..) | 27 | , RpcException (..) |
28 | , announce | 28 | , Network.BitTorrent.Tracker.RPC.announce |
29 | , scrape | 29 | , scrape |
30 | ) where | 30 | ) where |
31 | 31 | ||
@@ -36,7 +36,7 @@ import Network | |||
36 | import Network.URI | 36 | import Network.URI |
37 | import Network.Socket (HostAddress) | 37 | import Network.Socket (HostAddress) |
38 | 38 | ||
39 | import Data.Torrent.InfoHash | 39 | import Data.Torrent |
40 | import Data.Torrent.Progress | 40 | import Data.Torrent.Progress |
41 | import Network.BitTorrent.Core | 41 | import Network.BitTorrent.Core |
42 | import Network.BitTorrent.Tracker.Message | 42 | import Network.BitTorrent.Tracker.Message |
diff --git a/src/Network/BitTorrent/Tracker/RPC/HTTP.hs b/src/Network/BitTorrent/Tracker/RPC/HTTP.hs index 4a8e5f79..b4924e6d 100644 --- a/src/Network/BitTorrent/Tracker/RPC/HTTP.hs +++ b/src/Network/BitTorrent/Tracker/RPC/HTTP.hs | |||
@@ -47,7 +47,7 @@ import qualified Network.HTTP.Conduit as HTTP | |||
47 | import Network.HTTP.Types.Header (hUserAgent) | 47 | import Network.HTTP.Types.Header (hUserAgent) |
48 | import Network.HTTP.Types.URI (SimpleQuery, renderSimpleQuery) | 48 | import Network.HTTP.Types.URI (SimpleQuery, renderSimpleQuery) |
49 | 49 | ||
50 | import Data.Torrent.InfoHash (InfoHash) | 50 | import Data.Torrent (InfoHash) |
51 | import Network.BitTorrent.Core.Fingerprint (libUserAgent) | 51 | import Network.BitTorrent.Core.Fingerprint (libUserAgent) |
52 | import Network.BitTorrent.Tracker.Message hiding (Request, Response) | 52 | import Network.BitTorrent.Tracker.Message hiding (Request, Response) |
53 | 53 | ||
diff --git a/src/Network/BitTorrent/Tracker/Session.hs b/src/Network/BitTorrent/Tracker/Session.hs index 560acf84..35db459f 100644 --- a/src/Network/BitTorrent/Tracker/Session.hs +++ b/src/Network/BitTorrent/Tracker/Session.hs | |||
@@ -57,7 +57,7 @@ import Data.Time | |||
57 | import Data.Traversable | 57 | import Data.Traversable |
58 | import Network.URI | 58 | import Network.URI |
59 | 59 | ||
60 | import Data.Torrent.InfoHash | 60 | import Data.Torrent |
61 | import Network.BitTorrent.Core | 61 | import Network.BitTorrent.Core |
62 | import Network.BitTorrent.Internal.Cache | 62 | import Network.BitTorrent.Internal.Cache |
63 | import Network.BitTorrent.Internal.Types | 63 | import Network.BitTorrent.Internal.Types |