diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-25 09:10:55 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-25 09:10:55 +0400 |
commit | 954946e6624c59511792a2ae1542cb753a2eede1 (patch) | |
tree | a11379299c5aefed3b44f549009d30e1667fb6a7 | |
parent | e241ad38fad792424d711a5bd775c9841b3e6a5f (diff) |
Add documentation to Torrent module
-rw-r--r-- | src/Data/Torrent.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs index 4d6461af..59f11814 100644 --- a/src/Data/Torrent.hs +++ b/src/Data/Torrent.hs | |||
@@ -104,9 +104,14 @@ import Data.Torrent.Piece | |||
104 | -- | Info part of the .torrent file contain info about each content file. | 104 | -- | Info part of the .torrent file contain info about each content file. |
105 | data InfoDict = InfoDict | 105 | data InfoDict = InfoDict |
106 | { idInfoHash :: !InfoHash | 106 | { idInfoHash :: !InfoHash |
107 | -- ^ SHA1 hash of the (other) 'DictInfo' fields. | 107 | -- ^ SHA1 hash of the (other) 'DictInfo' fields. |
108 | |||
108 | , idLayoutInfo :: !LayoutInfo | 109 | , idLayoutInfo :: !LayoutInfo |
110 | -- ^ File layout (name, size, etc) information. | ||
111 | |||
109 | , idPieceInfo :: !PieceInfo | 112 | , idPieceInfo :: !PieceInfo |
113 | -- ^ Content validation information. | ||
114 | |||
110 | , idPrivate :: !Bool | 115 | , idPrivate :: !Bool |
111 | -- ^ If set the client MUST publish its presence to get other | 116 | -- ^ If set the client MUST publish its presence to get other |
112 | -- peers ONLY via the trackers explicity described in the | 117 | -- peers ONLY via the trackers explicity described in the |