summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/PeerWire/Block.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/PeerWire/Block.hs')
-rw-r--r--src/Network/BitTorrent/PeerWire/Block.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Network/BitTorrent/PeerWire/Block.hs b/src/Network/BitTorrent/PeerWire/Block.hs
index 9685a4fb..582accdb 100644
--- a/src/Network/BitTorrent/PeerWire/Block.hs
+++ b/src/Network/BitTorrent/PeerWire/Block.hs
@@ -21,13 +21,13 @@ type PieceLIx = Int
21type PieceIx = Int 21type PieceIx = Int
22 22
23data BlockIx = BlockIx { 23data BlockIx = BlockIx {
24 -- ^ Zero-based piece index. 24 -- | Zero-based piece index.
25 ixPiece :: {-# UNPACK #-} !PieceLIx 25 ixPiece :: {-# UNPACK #-} !PieceLIx
26 26
27 -- ^ Zero-based byte offset within the piece. 27 -- | Zero-based byte offset within the piece.
28 , ixOffset :: {-# UNPACK #-} !Int 28 , ixOffset :: {-# UNPACK #-} !Int
29 29
30 -- ^ Block size starting from offset. 30 -- | Block size starting from offset.
31 , ixLength :: {-# UNPACK #-} !Int 31 , ixLength :: {-# UNPACK #-} !Int
32 } deriving (Show, Eq) 32 } deriving (Show, Eq)
33 33
@@ -55,13 +55,13 @@ ppBlockIx ix = "piece = " ++ show (ixPiece ix) ++ ", "
55 ++ "length = " ++ show (ixLength ix) 55 ++ "length = " ++ show (ixLength ix)
56 56
57data Block = Block { 57data Block = Block {
58 -- ^ Zero-based piece index. 58 -- | Zero-based piece index.
59 blkPiece :: PieceLIx 59 blkPiece :: PieceLIx
60 60
61 -- ^ Zero-based byte offset within the piece. 61 -- | Zero-based byte offset within the piece.
62 , blkOffset :: Int 62 , blkOffset :: Int
63 63
64 -- ^ Payload. 64 -- | Payload.
65 , blkData :: ByteString 65 , blkData :: ByteString
66 } deriving (Show, Eq) 66 } deriving (Show, Eq)
67 67