diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-01 12:56:27 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-01 12:56:27 +0400 |
commit | 74f2cf6141d2a9aebe8bd5c7fdb5c116f38ef4a1 (patch) | |
tree | 7386ceaf23805474f47f6d6bb543909e622be099 /src/Data/Torrent.hs | |
parent | 13c8d6c7f3e26c384e77c7eaab217acd1253bb3b (diff) |
Document Piece module
Diffstat (limited to 'src/Data/Torrent.hs')
-rw-r--r-- | src/Data/Torrent.hs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs index 36b9de50..8d62b068 100644 --- a/src/Data/Torrent.hs +++ b/src/Data/Torrent.hs | |||
@@ -26,6 +26,8 @@ | |||
26 | module Data.Torrent | 26 | module Data.Torrent |
27 | ( -- * Info dictionary | 27 | ( -- * Info dictionary |
28 | InfoDict (..) | 28 | InfoDict (..) |
29 | |||
30 | -- ** Lenses | ||
29 | , infohash | 31 | , infohash |
30 | , layoutInfo | 32 | , layoutInfo |
31 | , pieceInfo | 33 | , pieceInfo |
@@ -33,6 +35,8 @@ module Data.Torrent | |||
33 | 35 | ||
34 | -- * Torrent file | 36 | -- * Torrent file |
35 | , Torrent(..) | 37 | , Torrent(..) |
38 | |||
39 | -- ** Lenses | ||
36 | , announce | 40 | , announce |
37 | , announceList | 41 | , announceList |
38 | , comment | 42 | , comment |
@@ -44,11 +48,14 @@ module Data.Torrent | |||
44 | , publisherURL | 48 | , publisherURL |
45 | , signature | 49 | , signature |
46 | 50 | ||
51 | -- * Construction | ||
47 | , nullTorrent | 52 | , nullTorrent |
48 | 53 | ||
49 | -- * IO | 54 | -- * File paths |
50 | , torrentExt | 55 | , torrentExt |
51 | , isTorrentPath | 56 | , isTorrentPath |
57 | |||
58 | -- * IO | ||
52 | , fromFile | 59 | , fromFile |
53 | , toFile | 60 | , toFile |
54 | ) where | 61 | ) where |