summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Data/Bitfield.hs (renamed from src/Network/BitTorrent/PeerWire/Bitfield.hs)4
-rw-r--r--src/Network/BitTorrent/PeerWire.hs1
-rw-r--r--src/Network/BitTorrent/PeerWire/Message.hs2
-rw-r--r--src/Network/BitTorrent/PeerWire/Selection.hs3
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Network/BitTorrent/PeerWire/Bitfield.hs b/src/Data/Bitfield.hs
index 03273899..ac647791 100644
--- a/src/Network/BitTorrent/PeerWire/Bitfield.hs
+++ b/src/Data/Bitfield.hs
@@ -12,7 +12,7 @@
12-- 12--
13{-# LANGUAGE BangPatterns #-} 13{-# LANGUAGE BangPatterns #-}
14{-# LANGUAGE RankNTypes #-} 14{-# LANGUAGE RankNTypes #-}
15module Network.BitTorrent.PeerWire.Bitfield 15module Data.Bitfield
16-- TODO: move to Data.Bitfield 16-- TODO: move to Data.Bitfield
17 ( Bitfield(..) 17 ( Bitfield(..)
18 18
@@ -51,7 +51,7 @@ import Foreign
51--import Network.BitTorrent.PeerWire.Block 51--import Network.BitTorrent.PeerWire.Block
52import Data.Torrent 52import Data.Torrent
53 53
54-- one good idea is to aggregate frequently used stats in reducer 54-- TODO: one good idea is to aggregate frequently used stats in reducer
55-- it should give a big boost 55-- it should give a big boost
56newtype Bitfield = MkBitfield { 56newtype Bitfield = MkBitfield {
57 bfBits :: ByteString 57 bfBits :: ByteString
diff --git a/src/Network/BitTorrent/PeerWire.hs b/src/Network/BitTorrent/PeerWire.hs
index 6d8ff156..d0583bff 100644
--- a/src/Network/BitTorrent/PeerWire.hs
+++ b/src/Network/BitTorrent/PeerWire.hs
@@ -9,7 +9,6 @@
9module Network.BitTorrent.PeerWire (module PW) where 9module Network.BitTorrent.PeerWire (module PW) where
10 10
11import Network.BitTorrent.PeerWire.Block as PW 11import Network.BitTorrent.PeerWire.Block as PW
12import Network.BitTorrent.PeerWire.Bitfield as PW
13import Network.BitTorrent.PeerWire.Selection as PW 12import Network.BitTorrent.PeerWire.Selection as PW
14import Network.BitTorrent.PeerWire.Message as PW 13import Network.BitTorrent.PeerWire.Message as PW
15import Network.BitTorrent.PeerWire.Handshake as PW 14import Network.BitTorrent.PeerWire.Handshake as PW
diff --git a/src/Network/BitTorrent/PeerWire/Message.hs b/src/Network/BitTorrent/PeerWire/Message.hs
index cc771966..39102eed 100644
--- a/src/Network/BitTorrent/PeerWire/Message.hs
+++ b/src/Network/BitTorrent/PeerWire/Message.hs
@@ -10,7 +10,7 @@ import qualified Data.ByteString as B
10import Data.Serialize 10import Data.Serialize
11 11
12import Network.BitTorrent.PeerWire.Block 12import Network.BitTorrent.PeerWire.Block
13import Network.BitTorrent.PeerWire.Bitfield 13import Data.Bitfield
14 14
15import Data.Array 15import Data.Array
16 16
diff --git a/src/Network/BitTorrent/PeerWire/Selection.hs b/src/Network/BitTorrent/PeerWire/Selection.hs
index 2e17317e..83ab8311 100644
--- a/src/Network/BitTorrent/PeerWire/Selection.hs
+++ b/src/Network/BitTorrent/PeerWire/Selection.hs
@@ -29,9 +29,10 @@ module Network.BitTorrent.PeerWire.Selection
29 , autoSelector 29 , autoSelector
30 ) where 30 ) where
31 31
32import Data.Bitfield
32import Network.BitTorrent.PeerWire.Block 33import Network.BitTorrent.PeerWire.Block
33import Network.BitTorrent.PeerWire.Message 34import Network.BitTorrent.PeerWire.Message
34import Network.BitTorrent.PeerWire.Bitfield 35
35 36
36 37
37type Selector = Bitfield -- ^ Indices of client "have" pieces. 38type Selector = Bitfield -- ^ Indices of client "have" pieces.