diff options
Diffstat (limited to 'src/Network/BitTorrent/Exchange/Block.hs')
-rw-r--r-- | src/Network/BitTorrent/Exchange/Block.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Exchange/Block.hs b/src/Network/BitTorrent/Exchange/Block.hs index ca635a75..5ab73b65 100644 --- a/src/Network/BitTorrent/Exchange/Block.hs +++ b/src/Network/BitTorrent/Exchange/Block.hs | |||
@@ -144,7 +144,7 @@ instance Pretty (Block BL.ByteString) where | |||
144 | 144 | ||
145 | -- | Get size of block /payload/ in bytes. | 145 | -- | Get size of block /payload/ in bytes. |
146 | blockSize :: Block BL.ByteString -> BlockSize | 146 | blockSize :: Block BL.ByteString -> BlockSize |
147 | blockSize blk = fromIntegral (BL.length (blkData blk)) | 147 | blockSize = fromIntegral . BL.length . blkData |
148 | {-# INLINE blockSize #-} | 148 | {-# INLINE blockSize #-} |
149 | 149 | ||
150 | -- | Get block index of a block. | 150 | -- | Get block index of a block. |