diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-04-26 05:41:28 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-04-26 05:41:28 +0400 |
commit | 4da9cd8cf951995c02e2e065503b2a79ca4acfb1 (patch) | |
tree | d2952580985731ef17c61c41f8c16d1fb6a03480 /src/Network/BitTorrent/Tracker | |
parent | e7914d0fad7d5ef26f0c89e8b78b5c7b6a2868f5 (diff) |
~ Fix hlint suggestions.
Diffstat (limited to 'src/Network/BitTorrent/Tracker')
-rw-r--r-- | src/Network/BitTorrent/Tracker/Protocol.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Tracker/Protocol.hs b/src/Network/BitTorrent/Tracker/Protocol.hs index 000b38c1..616e760b 100644 --- a/src/Network/BitTorrent/Tracker/Protocol.hs +++ b/src/Network/BitTorrent/Tracker/Protocol.hs | |||
@@ -34,6 +34,7 @@ module Network.BitTorrent.Tracker.Protocol | |||
34 | where | 34 | where |
35 | 35 | ||
36 | import Control.Applicative | 36 | import Control.Applicative |
37 | import Control.Monad | ||
37 | import Data.Char as Char | 38 | import Data.Char as Char |
38 | import Data.Word (Word32) | 39 | import Data.Word (Word32) |
39 | import Data.List as L | 40 | import Data.List as L |
@@ -130,7 +131,7 @@ instance BEncodable TResponse where | |||
130 | getPeers (Just (BString s)) | 131 | getPeers (Just (BString s)) |
131 | | B.length s `mod` 6 == 0 = | 132 | | B.length s `mod` 6 == 0 = |
132 | let cnt = B.length s `div` 6 in | 133 | let cnt = B.length s `div` 6 in |
133 | runGet (sequence (L.replicate cnt peerG)) s | 134 | runGet (replicateM cnt peerG) s |
134 | | otherwise = decodingError "peers length not a multiple of 6" | 135 | | otherwise = decodingError "peers length not a multiple of 6" |
135 | where | 136 | where |
136 | peerG = do | 137 | peerG = do |