summaryrefslogtreecommitdiff
path: root/src/Data
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data')
-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