summaryrefslogtreecommitdiff
path: root/src/Data/Bitfield.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-08 00:39:24 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-08 00:39:24 +0400
commitaaf7ecf00fe34c4b581937713c3308d7e7221360 (patch)
tree74d62e8c217dbdfa43091d7c1d6ed81bba0973c6 /src/Data/Bitfield.hs
parent757ce3b4fa3de2d6e84307f79184a44b48ec0a29 (diff)
~ Merge Block and Handshake into Protocol.
We could provide better api this way. Also this refactoring should reduce compilation time.
Diffstat (limited to 'src/Data/Bitfield.hs')
-rw-r--r--src/Data/Bitfield.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Data/Bitfield.hs b/src/Data/Bitfield.hs
index 56365bf7..7cd07123 100644
--- a/src/Data/Bitfield.hs
+++ b/src/Data/Bitfield.hs
@@ -13,7 +13,7 @@
13{-# LANGUAGE BangPatterns #-} 13{-# LANGUAGE BangPatterns #-}
14{-# LANGUAGE RecordWildCards #-} 14{-# LANGUAGE RecordWildCards #-}
15module Data.Bitfield 15module Data.Bitfield
16 ( Bitfield, PieceCount 16 ( PieceIx, PieceCount, Bitfield
17 17
18 -- * Construction 18 -- * Construction
19 , haveAll, haveNone, have 19 , haveAll, haveNone, have
@@ -54,9 +54,10 @@ import qualified Data.IntervalSet.ByteString as S
54import Data.List (foldl') 54import Data.List (foldl')
55import Data.Monoid 55import Data.Monoid
56import Data.Ratio 56import Data.Ratio
57import Network.BitTorrent.PeerWire.Block
58 57
59 58
59type PieceIx = Int
60
60-- | Used to represent max set bound. Min set bound is always set to 61-- | Used to represent max set bound. Min set bound is always set to
61-- zero. 62-- zero.
62type PieceCount = Int 63type PieceCount = Int