diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-08-16 09:34:41 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-08-16 09:34:41 +0400 |
commit | 117f02a8e1dcda839e700d92e323a418c15522f5 (patch) | |
tree | c7714e2c3873fe8d16262f07a104ba03b021d59e /src | |
parent | 9e7048216351f81b8d5c8c8e66b76b862ac9622f (diff) |
~ Fix some warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/BitTorrent/Exchange/Protocol.hs | 1 | ||||
-rw-r--r-- | src/Network/BitTorrent/Sessions/Types.lhs | 3 | ||||
-rw-r--r-- | src/Network/BitTorrent/Tracker/HTTP.hs | 4 | ||||
-rw-r--r-- | src/Network/BitTorrent/Tracker/Protocol.hs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Network/BitTorrent/Exchange/Protocol.hs b/src/Network/BitTorrent/Exchange/Protocol.hs index 3b2472da..8286ae7d 100644 --- a/src/Network/BitTorrent/Exchange/Protocol.hs +++ b/src/Network/BitTorrent/Exchange/Protocol.hs | |||
@@ -64,7 +64,6 @@ import Data.ByteString (ByteString) | |||
64 | import qualified Data.ByteString as B | 64 | import qualified Data.ByteString as B |
65 | import qualified Data.ByteString.Char8 as BC | 65 | import qualified Data.ByteString.Char8 as BC |
66 | import qualified Data.ByteString.Lazy as Lazy | 66 | import qualified Data.ByteString.Lazy as Lazy |
67 | import Data.Char | ||
68 | import Data.Default | 67 | import Data.Default |
69 | import Data.List as L | 68 | import Data.List as L |
70 | import Data.Word | 69 | import Data.Word |
diff --git a/src/Network/BitTorrent/Sessions/Types.lhs b/src/Network/BitTorrent/Sessions/Types.lhs index e62e362f..3dde1853 100644 --- a/src/Network/BitTorrent/Sessions/Types.lhs +++ b/src/Network/BitTorrent/Sessions/Types.lhs | |||
@@ -19,7 +19,8 @@ | |||
19 | > | 19 | > |
20 | > , Progress (..) | 20 | > , Progress (..) |
21 | > , left, uploaded, downloaded | 21 | > , left, uploaded, downloaded |
22 | > , startProgress, enqueuedProgress | 22 | > , startProgress |
23 | > , enqueuedProgress, uploadedProgress, dequeuedProgress | ||
23 | > | 24 | > |
24 | > , ClientSession (..) | 25 | > , ClientSession (..) |
25 | > | 26 | > |
diff --git a/src/Network/BitTorrent/Tracker/HTTP.hs b/src/Network/BitTorrent/Tracker/HTTP.hs index f781b847..4fef5e56 100644 --- a/src/Network/BitTorrent/Tracker/HTTP.hs +++ b/src/Network/BitTorrent/Tracker/HTTP.hs | |||
@@ -15,7 +15,7 @@ | |||
15 | -- | 15 | -- |
16 | module Network.BitTorrent.Tracker.HTTP | 16 | module Network.BitTorrent.Tracker.HTTP |
17 | ( askTracker, leaveTracker | 17 | ( askTracker, leaveTracker |
18 | , scrapeURL | 18 | , scrapeURL, scrape, scrapeOne |
19 | ) where | 19 | ) where |
20 | 20 | ||
21 | import Control.Applicative | 21 | import Control.Applicative |
@@ -30,7 +30,7 @@ import Data.URLEncoded as URL | |||
30 | import Network.URI | 30 | import Network.URI |
31 | import Network.HTTP | 31 | import Network.HTTP |
32 | 32 | ||
33 | import Data.Torrent.Metainfo | 33 | import Data.Torrent.Metainfo hiding (announce) |
34 | import Network.BitTorrent.Tracker.Protocol | 34 | import Network.BitTorrent.Tracker.Protocol |
35 | 35 | ||
36 | {----------------------------------------------------------------------- | 36 | {----------------------------------------------------------------------- |
diff --git a/src/Network/BitTorrent/Tracker/Protocol.hs b/src/Network/BitTorrent/Tracker/Protocol.hs index c468656f..4e1262ed 100644 --- a/src/Network/BitTorrent/Tracker/Protocol.hs +++ b/src/Network/BitTorrent/Tracker/Protocol.hs | |||
@@ -261,7 +261,7 @@ instance Serialize AnnounceQuery where | |||
261 | 261 | ||
262 | ev <- getEvent | 262 | ev <- getEvent |
263 | ip <- getWord32be | 263 | ip <- getWord32be |
264 | key <- getWord32be -- TODO | 264 | -- key <- getWord32be -- TODO |
265 | want <- getWord32be | 265 | want <- getWord32be |
266 | 266 | ||
267 | port <- get | 267 | port <- get |