summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Data/Torrent.hs7
-rw-r--r--src/Data/Torrent/InfoHash.hs7
-rw-r--r--src/Network/Torrent/PeerID.hs13
-rw-r--r--src/Network/Torrent/PeerWire.hs7
-rw-r--r--src/Network/Torrent/PeerWire/Handshake.hs7
-rw-r--r--src/Network/Torrent/Tracker.hs9
-rw-r--r--src/Network/Torrent/Tracker/Scrape.hs11
7 files changed, 56 insertions, 5 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs
index f38732f5..d9f59626 100644
--- a/src/Data/Torrent.hs
+++ b/src/Data/Torrent.hs
@@ -1,3 +1,10 @@
1-- |
2-- Copyright : (c) Sam T. 2013
3-- License : MIT
4-- Maintainer : pxqr.sta@gmail.com
5-- Stability : experimental
6-- Portability : portable
7--
1{-# OPTIONS -fno-warn-orphans #-} 8{-# OPTIONS -fno-warn-orphans #-}
2{-# LANGUAGE OverloadedStrings #-} 9{-# LANGUAGE OverloadedStrings #-}
3-- | This module provides torrent metainfo serialization. 10-- | This module provides torrent metainfo serialization.
diff --git a/src/Data/Torrent/InfoHash.hs b/src/Data/Torrent/InfoHash.hs
index a5ba3786..51ce0ecd 100644
--- a/src/Data/Torrent/InfoHash.hs
+++ b/src/Data/Torrent/InfoHash.hs
@@ -1,3 +1,10 @@
1-- |
2-- Copyright : (c) Sam T. 2013
3-- License : MIT
4-- Maintainer : pxqr.sta@gmail.com
5-- Stability : experimental
6-- Portability : portable
7--
1{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances #-} 8{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances #-}
2module Data.Torrent.InfoHash 9module Data.Torrent.InfoHash
3 ( InfoHash (getInfoHash) 10 ( InfoHash (getInfoHash)
diff --git a/src/Network/Torrent/PeerID.hs b/src/Network/Torrent/PeerID.hs
index 7071bc9b..7d928f80 100644
--- a/src/Network/Torrent/PeerID.hs
+++ b/src/Network/Torrent/PeerID.hs
@@ -1,8 +1,17 @@
1{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-}
2-- TODO: tests 1-- TODO: tests
3-- | Recommended method for generation of the peer ID's is 'newPeerID', 2-- |
3-- Copyright : (c) Sam T. 2013
4-- License : MIT
5-- Maintainer : pxqr.sta@gmail.com
6-- Stability : experimental
7-- Portability : non-portable
8--
9-- This module provides 'Peer' and 'PeerID' datatypes and all related
10-- operations.
11-- Recommended method for generation of the peer ID's is 'newPeerID',
4-- though this module exports some other goodies for custom generation. 12-- though this module exports some other goodies for custom generation.
5-- 13--
14{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-}
6module Network.Torrent.PeerID 15module Network.Torrent.PeerID
7 ( -- * Peer addr 16 ( -- * Peer addr
8 Peer(..) 17 Peer(..)
diff --git a/src/Network/Torrent/PeerWire.hs b/src/Network/Torrent/PeerWire.hs
index 27ecda79..f84b7016 100644
--- a/src/Network/Torrent/PeerWire.hs
+++ b/src/Network/Torrent/PeerWire.hs
@@ -1,3 +1,10 @@
1-- |
2-- Copyright : (c) Sam T. 2013
3-- License : MIT
4-- Maintainer : pxqr.sta@gmail.com
5-- Stability : experimental
6-- Portability : portable
7--
1{-# LANGUAGE DoAndIfThenElse #-} 8{-# LANGUAGE DoAndIfThenElse #-}
2module Network.Torrent.PeerWire 9module Network.Torrent.PeerWire
3 ( module Network.Torrent.PeerWire.Handshake 10 ( module Network.Torrent.PeerWire.Handshake
diff --git a/src/Network/Torrent/PeerWire/Handshake.hs b/src/Network/Torrent/PeerWire/Handshake.hs
index 8177fe41..733d5785 100644
--- a/src/Network/Torrent/PeerWire/Handshake.hs
+++ b/src/Network/Torrent/PeerWire/Handshake.hs
@@ -1,3 +1,10 @@
1-- |
2-- Copyright : (c) Sam T. 2013
3-- License : MIT
4-- Maintainer : pxqr.sta@gmail.com
5-- Stability : experimental
6-- Portability : portable
7--
1{-# LANGUAGE OverloadedStrings #-} 8{-# LANGUAGE OverloadedStrings #-}
2module Network.Torrent.PeerWire.Handshake 9module Network.Torrent.PeerWire.Handshake
3 ( Handshake 10 ( Handshake
diff --git a/src/Network/Torrent/Tracker.hs b/src/Network/Torrent/Tracker.hs
index 0d38cc05..ffbdc949 100644
--- a/src/Network/Torrent/Tracker.hs
+++ b/src/Network/Torrent/Tracker.hs
@@ -1,4 +1,11 @@
1-- TODO: add "compact" field 1-- TODO: add "compact" field to TRequest
2-- |
3-- Copyright : (c) Sam T. 2013
4-- License : MIT
5-- Maintainer : pxqr.sta@gmail.com
6-- Stability : experimental
7-- Portability : non-portable
8--
2{-# OPTIONS -fno-warn-orphans #-} 9{-# OPTIONS -fno-warn-orphans #-}
3{-# LANGUAGE OverloadedStrings #-} 10{-# LANGUAGE OverloadedStrings #-}
4module Network.Torrent.Tracker 11module Network.Torrent.Tracker
diff --git a/src/Network/Torrent/Tracker/Scrape.hs b/src/Network/Torrent/Tracker/Scrape.hs
index 80a9fc0a..f5ebbea4 100644
--- a/src/Network/Torrent/Tracker/Scrape.hs
+++ b/src/Network/Torrent/Tracker/Scrape.hs
@@ -1,9 +1,16 @@
1{-# LANGUAGE OverloadedStrings #-} 1-- |
2-- | By convention most trackers support anouther form of request, 2-- Copyright : (c) Sam T. 2013
3-- License : MIT
4-- Maintainer : pxqr.sta@gmail.com
5-- Stability : experimental
6-- Portability : portable
7--
8-- By convention most trackers support anouther form of request,
3-- which queries the state of a given torrent (or all torrents) that the 9-- which queries the state of a given torrent (or all torrents) that the
4-- tracker is managing. This module provides a way to easily request 10-- tracker is managing. This module provides a way to easily request
5-- scrape info for a particular torrent list. 11-- scrape info for a particular torrent list.
6-- 12--
13{-# LANGUAGE OverloadedStrings #-}
7module Network.Torrent.Tracker.Scrape 14module Network.Torrent.Tracker.Scrape
8 ( ScrapeInfo(..), Scrape 15 ( ScrapeInfo(..), Scrape
9 , scrapeURL 16 , scrapeURL