diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-25 07:56:51 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-25 07:56:51 +0400 |
commit | 2a4d3e941320c489d7359cde725031432ea96765 (patch) | |
tree | 5952cfb979110447d339cfbafccc29bdf9a03881 /src/Data/Torrent/Piece.hs | |
parent | 087e3435877445c5776e035ec08a26edefb3f7a1 (diff) |
Fix test
Diffstat (limited to 'src/Data/Torrent/Piece.hs')
-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 | ||