summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r--src/Network/BitTorrent/Client.hs2
-rw-r--r--src/Network/BitTorrent/Client/Handle.hs2
-rw-r--r--src/Network/BitTorrent/Client/Types.hs2
-rw-r--r--src/Network/BitTorrent/DHT.hs3
-rw-r--r--src/Network/BitTorrent/DHT/ContactInfo.hs2
-rw-r--r--src/Network/BitTorrent/DHT/Message.hs2
-rw-r--r--src/Network/BitTorrent/DHT/Query.hs2
-rw-r--r--src/Network/BitTorrent/DHT/Routing.hs2
-rw-r--r--src/Network/BitTorrent/DHT/Session.hs2
-rw-r--r--src/Network/BitTorrent/Exchange/Connection.hs2
-rw-r--r--src/Network/BitTorrent/Exchange/Manager.hs2
-rw-r--r--src/Network/BitTorrent/Exchange/Message.hs2
-rw-r--r--src/Network/BitTorrent/Exchange/Session.hs6
-rw-r--r--src/Network/BitTorrent/Exchange/Session/Metadata.hs3
-rw-r--r--src/Network/BitTorrent/Tracker/Message.hs2
-rw-r--r--src/Network/BitTorrent/Tracker/RPC.hs4
-rw-r--r--src/Network/BitTorrent/Tracker/RPC/HTTP.hs2
-rw-r--r--src/Network/BitTorrent/Tracker/Session.hs2
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
61import Network 61import Network
62 62
63import Data.Torrent 63import Data.Torrent
64import Data.Torrent.InfoHash
65import Data.Torrent.Magnet
66import Network.BitTorrent.Client.Types 64import Network.BitTorrent.Client.Types
67import Network.BitTorrent.Client.Handle 65import Network.BitTorrent.Client.Handle
68import Network.BitTorrent.Core 66import 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
26import Data.HashMap.Strict as HM 26import Data.HashMap.Strict as HM
27 27
28import Data.Torrent 28import Data.Torrent
29import Data.Torrent.InfoHash
30import Data.Torrent.Magnet
31import Network.BitTorrent.Client.Types as Types 29import Network.BitTorrent.Client.Types as Types
32import Network.BitTorrent.DHT as DHT 30import Network.BitTorrent.DHT as DHT
33import Network.BitTorrent.Exchange as Exchange 31import 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
34import Network 34import Network
35import System.Log.FastLogger 35import System.Log.FastLogger
36 36
37import Data.Torrent.InfoHash 37import Data.Torrent
38import Network.BitTorrent.Internal.Types as Types 38import Network.BitTorrent.Internal.Types as Types
39import Network.BitTorrent.Core 39import Network.BitTorrent.Core
40import Network.BitTorrent.DHT as DHT 40import 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
62import Data.Conduit.List as C 62import Data.Conduit.List as C
63import Network.Socket 63import Network.Socket
64 64
65import Data.Torrent (tNodes) 65import Data.Torrent
66import Data.Torrent.InfoHash
67import Network.BitTorrent.Core 66import Network.BitTorrent.Core
68import Network.BitTorrent.DHT.Query 67import Network.BitTorrent.DHT.Query
69import Network.BitTorrent.DHT.Session 68import 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
11import Data.HashMap.Strict as HM 11import Data.HashMap.Strict as HM
12import Data.Serialize 12import Data.Serialize
13 13
14import Data.Torrent.InfoHash 14import Data.Torrent
15import Network.BitTorrent.Core.PeerAddr 15import 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
92import Network 92import Network
93import Network.KRPC 93import Network.KRPC
94 94
95import Data.Torrent.InfoHash 95import Data.Torrent
96import Network.BitTorrent.Core 96import Network.BitTorrent.Core
97import Network.BitTorrent.DHT.Token 97import Network.BitTorrent.DHT.Token
98import Network.KRPC () 98import 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 ((<>), ($$))
56import Text.PrettyPrint.Class 56import Text.PrettyPrint.Class
57 57
58import Network.KRPC hiding (Options, def) 58import Network.KRPC hiding (Options, def)
59import Data.Torrent.InfoHash 59import Data.Torrent
60import Network.BitTorrent.Core 60import Network.BitTorrent.Core
61import Network.BitTorrent.DHT.Message 61import Network.BitTorrent.DHT.Message
62import Network.BitTorrent.DHT.Routing 62import 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
73import Text.PrettyPrint as PP hiding ((<>)) 73import Text.PrettyPrint as PP hiding ((<>))
74import Text.PrettyPrint.Class 74import Text.PrettyPrint.Class
75 75
76import Data.Torrent.InfoHash 76import Data.Torrent
77import Network.BitTorrent.Core 77import 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)
91import Text.PrettyPrint as PP hiding ((<>), ($$)) 91import Text.PrettyPrint as PP hiding ((<>), ($$))
92import Text.PrettyPrint.Class 92import Text.PrettyPrint.Class
93 93
94import Data.Torrent.InfoHash 94import Data.Torrent
95import Network.KRPC hiding (Options, def) 95import Network.KRPC hiding (Options, def)
96import qualified Network.KRPC as KRPC (def) 96import qualified Network.KRPC as KRPC (def)
97import Network.BitTorrent.Core 97import 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(..))
136import System.Timeout 136import System.Timeout
137 137
138import Data.Torrent.Bitfield as BF 138import Data.Torrent.Bitfield as BF
139import Data.Torrent.InfoHash 139import Data.Torrent
140import Network.BitTorrent.Core 140import Network.BitTorrent.Core
141import Network.BitTorrent.Exchange.Message as Msg 141import 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
12import Data.Default 12import Data.Default
13import Network.Socket 13import Network.Socket
14 14
15import Data.Torrent.InfoHash 15import Data.Torrent
16import Network.BitTorrent.Core 16import Network.BitTorrent.Core
17import Network.BitTorrent.Exchange.Connection hiding (Options) 17import Network.BitTorrent.Exchange.Connection hiding (Options)
18import Network.BitTorrent.Exchange.Session 18import 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 ((<>))
118import Text.PrettyPrint.Class 118import Text.PrettyPrint.Class
119 119
120import Data.Torrent.Bitfield 120import Data.Torrent.Bitfield
121import Data.Torrent.InfoHash 121import Data.Torrent
122import qualified Data.Torrent.Piece as P 122import qualified Data.Torrent.Piece as P
123import Network.BitTorrent.Core 123import Network.BitTorrent.Core
124import Network.BitTorrent.Exchange.Block 124import 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
45import System.Log.FastLogger (LogStr, ToLogStr (..)) 45import System.Log.FastLogger (LogStr, ToLogStr (..))
46 46
47import Data.BEncode as BE 47import Data.BEncode as BE
48import Data.Torrent (InfoDict (..)) 48import Data.Torrent as T
49import Data.Torrent.Piece as Torrent
49import Data.Torrent.Bitfield as BF 50import Data.Torrent.Bitfield as BF
50import Data.Torrent.InfoHash
51import Data.Torrent.Piece
52import qualified Data.Torrent.Piece as Torrent (Piece ())
53import Network.BitTorrent.Internal.Types 51import Network.BitTorrent.Internal.Types
54import Network.BitTorrent.Core 52import Network.BitTorrent.Core
55import Network.BitTorrent.Exchange.Block as Block 53import 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
26import Data.Tuple 26import Data.Tuple
27 27
28import Data.BEncode as BE 28import Data.BEncode as BE
29import Data.Torrent 29import Data.Torrent as Torrent
30import Data.Torrent.InfoHash
31import Data.Torrent.Piece as Torrent 30import Data.Torrent.Piece as Torrent
32import Network.BitTorrent.Core 31import Network.BitTorrent.Core
33import Network.BitTorrent.Exchange.Block as Block 32import 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
124import System.Entropy 124import System.Entropy
125import Text.Read (readMaybe) 125import Text.Read (readMaybe)
126 126
127import Data.Torrent.InfoHash 127import Data.Torrent
128import Data.Torrent.Progress 128import Data.Torrent.Progress
129import Network.BitTorrent.Core 129import 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
36import Network.URI 36import Network.URI
37import Network.Socket (HostAddress) 37import Network.Socket (HostAddress)
38 38
39import Data.Torrent.InfoHash 39import Data.Torrent
40import Data.Torrent.Progress 40import Data.Torrent.Progress
41import Network.BitTorrent.Core 41import Network.BitTorrent.Core
42import Network.BitTorrent.Tracker.Message 42import 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
47import Network.HTTP.Types.Header (hUserAgent) 47import Network.HTTP.Types.Header (hUserAgent)
48import Network.HTTP.Types.URI (SimpleQuery, renderSimpleQuery) 48import Network.HTTP.Types.URI (SimpleQuery, renderSimpleQuery)
49 49
50import Data.Torrent.InfoHash (InfoHash) 50import Data.Torrent (InfoHash)
51import Network.BitTorrent.Core.Fingerprint (libUserAgent) 51import Network.BitTorrent.Core.Fingerprint (libUserAgent)
52import Network.BitTorrent.Tracker.Message hiding (Request, Response) 52import 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
57import Data.Traversable 57import Data.Traversable
58import Network.URI 58import Network.URI
59 59
60import Data.Torrent.InfoHash 60import Data.Torrent
61import Network.BitTorrent.Core 61import Network.BitTorrent.Core
62import Network.BitTorrent.Internal.Cache 62import Network.BitTorrent.Internal.Cache
63import Network.BitTorrent.Internal.Types 63import Network.BitTorrent.Internal.Types