summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-04-26 05:41:28 +0400
committerSam T <pxqr.sta@gmail.com>2013-04-26 05:41:28 +0400
commit4da9cd8cf951995c02e2e065503b2a79ca4acfb1 (patch)
treed2952580985731ef17c61c41f8c16d1fb6a03480 /src/Network/BitTorrent/Tracker
parente7914d0fad7d5ef26f0c89e8b78b5c7b6a2868f5 (diff)
~ Fix hlint suggestions.
Diffstat (limited to 'src/Network/BitTorrent/Tracker')
-rw-r--r--src/Network/BitTorrent/Tracker/Protocol.hs3
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
36import Control.Applicative 36import Control.Applicative
37import Control.Monad
37import Data.Char as Char 38import Data.Char as Char
38import Data.Word (Word32) 39import Data.Word (Word32)
39import Data.List as L 40import 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