summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-11-25 09:10:55 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-11-25 09:10:55 +0400
commit954946e6624c59511792a2ae1542cb753a2eede1 (patch)
treea11379299c5aefed3b44f549009d30e1667fb6a7
parente241ad38fad792424d711a5bd775c9841b3e6a5f (diff)
Add documentation to Torrent module
-rw-r--r--src/Data/Torrent.hs7
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.
105data InfoDict = InfoDict 105data 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