diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-05-01 08:05:27 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-05-01 08:05:27 +0400 |
commit | b705ef2baa0930aff3c43c31f3ea29caf969512b (patch) | |
tree | 53d8da4b760829b6fd9098bd093c6706071f4a7f /src | |
parent | e278bc588af81b01b49511fe69d4a3013a338e19 (diff) |
~ Fix documentation markup.
Diffstat (limited to 'src')
-rw-r--r-- | src/Data/Torrent.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/PeerWire/Block.hs | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs index 35bed5f2..c3753d4f 100644 --- a/src/Data/Torrent.hs +++ b/src/Data/Torrent.hs | |||
@@ -5,9 +5,9 @@ | |||
5 | -- Stability : experimental | 5 | -- Stability : experimental |
6 | -- Portability : portable | 6 | -- Portability : portable |
7 | -- | 7 | -- |
8 | -- This module provides torrent metainfo serialization. | ||
8 | {-# OPTIONS -fno-warn-orphans #-} | 9 | {-# OPTIONS -fno-warn-orphans #-} |
9 | {-# LANGUAGE OverloadedStrings #-} | 10 | {-# LANGUAGE OverloadedStrings #-} |
10 | -- | This module provides torrent metainfo serialization. | ||
11 | module Data.Torrent | 11 | module Data.Torrent |
12 | ( module Data.Torrent.InfoHash | 12 | ( module Data.Torrent.InfoHash |
13 | , Torrent(..), ContentInfo(..), FileInfo(..) | 13 | , Torrent(..), ContentInfo(..), FileInfo(..) |
diff --git a/src/Network/BitTorrent/PeerWire/Block.hs b/src/Network/BitTorrent/PeerWire/Block.hs index 9685a4fb..582accdb 100644 --- a/src/Network/BitTorrent/PeerWire/Block.hs +++ b/src/Network/BitTorrent/PeerWire/Block.hs | |||
@@ -21,13 +21,13 @@ type PieceLIx = Int | |||
21 | type PieceIx = Int | 21 | type PieceIx = Int |
22 | 22 | ||
23 | data BlockIx = BlockIx { | 23 | data BlockIx = BlockIx { |
24 | -- ^ Zero-based piece index. | 24 | -- | Zero-based piece index. |
25 | ixPiece :: {-# UNPACK #-} !PieceLIx | 25 | ixPiece :: {-# UNPACK #-} !PieceLIx |
26 | 26 | ||
27 | -- ^ Zero-based byte offset within the piece. | 27 | -- | Zero-based byte offset within the piece. |
28 | , ixOffset :: {-# UNPACK #-} !Int | 28 | , ixOffset :: {-# UNPACK #-} !Int |
29 | 29 | ||
30 | -- ^ Block size starting from offset. | 30 | -- | Block size starting from offset. |
31 | , ixLength :: {-# UNPACK #-} !Int | 31 | , ixLength :: {-# UNPACK #-} !Int |
32 | } deriving (Show, Eq) | 32 | } deriving (Show, Eq) |
33 | 33 | ||
@@ -55,13 +55,13 @@ ppBlockIx ix = "piece = " ++ show (ixPiece ix) ++ ", " | |||
55 | ++ "length = " ++ show (ixLength ix) | 55 | ++ "length = " ++ show (ixLength ix) |
56 | 56 | ||
57 | data Block = Block { | 57 | data Block = Block { |
58 | -- ^ Zero-based piece index. | 58 | -- | Zero-based piece index. |
59 | blkPiece :: PieceLIx | 59 | blkPiece :: PieceLIx |
60 | 60 | ||
61 | -- ^ Zero-based byte offset within the piece. | 61 | -- | Zero-based byte offset within the piece. |
62 | , blkOffset :: Int | 62 | , blkOffset :: Int |
63 | 63 | ||
64 | -- ^ Payload. | 64 | -- | Payload. |
65 | , blkData :: ByteString | 65 | , blkData :: ByteString |
66 | } deriving (Show, Eq) | 66 | } deriving (Show, Eq) |
67 | 67 | ||