summaryrefslogtreecommitdiff
path: root/src/Data/Torrent/Piece.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-11-25 07:56:51 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-11-25 07:56:51 +0400
commit2a4d3e941320c489d7359cde725031432ea96765 (patch)
tree5952cfb979110447d339cfbafccc29bdf9a03881 /src/Data/Torrent/Piece.hs
parent087e3435877445c5776e035ec08a26edefb3f7a1 (diff)
Fix test
Diffstat (limited to 'src/Data/Torrent/Piece.hs')
-rw-r--r--src/Data/Torrent/Piece.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Data/Torrent/Piece.hs b/src/Data/Torrent/Piece.hs
index 6cff53d6..7eb4e3d5 100644
--- a/src/Data/Torrent/Piece.hs
+++ b/src/Data/Torrent/Piece.hs
@@ -25,6 +25,7 @@ module Data.Torrent.Piece
25 , isPiece 25 , isPiece
26 26
27 -- * Piece control 27 -- * Piece control
28 , HashArray (..)
28 , PieceInfo (..) 29 , PieceInfo (..)
29 , pieceCount 30 , pieceCount
30 31
@@ -138,6 +139,7 @@ isPiece pieceLen blk @ (Block i offset _) =
138-- Piece control 139-- Piece control
139-----------------------------------------------------------------------} 140-----------------------------------------------------------------------}
140 141
142-- | A flat array of SHA1 sums of each piece.
141newtype HashArray = HashArray { unHashArray :: ByteString } 143newtype HashArray = HashArray { unHashArray :: ByteString }
142 deriving (Show, Read, Eq, BEncode) 144 deriving (Show, Read, Eq, BEncode)
143 145