diff options
Diffstat (limited to 'src/Data/Torrent')
-rw-r--r-- | src/Data/Torrent/Piece.hs | 2 |
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. | ||
141 | newtype HashArray = HashArray { unHashArray :: ByteString } | 143 | newtype HashArray = HashArray { unHashArray :: ByteString } |
142 | deriving (Show, Read, Eq, BEncode) | 144 | deriving (Show, Read, Eq, BEncode) |
143 | 145 | ||