summaryrefslogtreecommitdiff
path: root/src/Data/Torrent/Block.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-10-31 19:17:08 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-10-31 19:17:08 +0400
commit0853bc857b370ed5f7a453a18a7b03b28cd3b410 (patch)
tree0437b785e9f91d53dfda170bdb48a9cd395d97da /src/Data/Torrent/Block.hs
parente3b584173f9a58c4c662ec5e933e97c09334910e (diff)
Introduce PieceCount newtype
Diffstat (limited to 'src/Data/Torrent/Block.hs')
-rw-r--r--src/Data/Torrent/Block.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Data/Torrent/Block.hs b/src/Data/Torrent/Block.hs
index e0507aed..ca3bef45 100644
--- a/src/Data/Torrent/Block.hs
+++ b/src/Data/Torrent/Block.hs
@@ -56,6 +56,7 @@ newtype BlockSize = BlockSize { unBlockSize :: Int }
56-- | Widely used semi-official block size. 56-- | Widely used semi-official block size.
57instance Default BlockSize where 57instance Default BlockSize where
58 def = 16 * 1024 58 def = 16 * 1024
59 {-# INLINE def #-}
59 60
60type BlockLIx = Int 61type BlockLIx = Int
61type PieceLIx = Int 62type PieceLIx = Int