packages feed

torrent 10000.0.0 → 10000.0.1

raw patch · 3 files changed

+22/−2 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.Torrent: fileLength :: TorrentFile -> Integer
- Data.Torrent: filePath :: TorrentFile -> [ByteString]
- Data.Torrent: instance Binary Torrent
- Data.Torrent: instance Data Torrent
- Data.Torrent: instance Data TorrentFile
- Data.Torrent: instance Data TorrentInfo
- Data.Torrent: instance Read Torrent
- Data.Torrent: instance Read TorrentFile
- Data.Torrent: instance Read TorrentInfo
- Data.Torrent: instance Show Torrent
- Data.Torrent: instance Show TorrentFile
- Data.Torrent: instance Show TorrentInfo
- Data.Torrent: instance Typeable Torrent
- Data.Torrent: instance Typeable TorrentFile
- Data.Torrent: instance Typeable TorrentInfo
- Data.Torrent: tAnnounce :: Torrent -> ByteString
- Data.Torrent: tAnnounceList :: Torrent -> [ByteString]
- Data.Torrent: tComment :: Torrent -> ByteString
- Data.Torrent: tCreatedBy :: Torrent -> Maybe ByteString
- Data.Torrent: tFiles :: TorrentInfo -> [TorrentFile]
- Data.Torrent: tInfo :: Torrent -> TorrentInfo
- Data.Torrent: tLength :: TorrentInfo -> Integer
- Data.Torrent: tName :: TorrentInfo -> ByteString
- Data.Torrent: tPieceLength :: TorrentInfo -> Integer
- Data.Torrent: tPieces :: TorrentInfo -> ByteString
- Data.Torrent.Scrape: instance Read ScrapeInfo
- Data.Torrent.Scrape: instance Show ScrapeInfo
- Data.Torrent.Scrape: scrapeLeechers :: ScrapeInfo -> Integer
- Data.Torrent.Scrape: scrapeSeeds :: ScrapeInfo -> Integer
+ Data.Torrent: [fileLength] :: TorrentFile -> Integer
+ Data.Torrent: [filePath] :: TorrentFile -> [ByteString]
+ Data.Torrent: [tAnnounceList] :: Torrent -> [ByteString]
+ Data.Torrent: [tAnnounce] :: Torrent -> ByteString
+ Data.Torrent: [tComment] :: Torrent -> ByteString
+ Data.Torrent: [tCreatedBy] :: Torrent -> Maybe ByteString
+ Data.Torrent: [tFiles] :: TorrentInfo -> [TorrentFile]
+ Data.Torrent: [tInfo] :: Torrent -> TorrentInfo
+ Data.Torrent: [tLength] :: TorrentInfo -> Integer
+ Data.Torrent: [tName] :: TorrentInfo -> ByteString
+ Data.Torrent: [tPieceLength] :: TorrentInfo -> Integer
+ Data.Torrent: [tPieces] :: TorrentInfo -> ByteString
+ Data.Torrent: instance Data.Binary.Class.Binary Data.Torrent.Torrent
+ Data.Torrent: instance Data.Data.Data Data.Torrent.Torrent
+ Data.Torrent: instance Data.Data.Data Data.Torrent.TorrentFile
+ Data.Torrent: instance Data.Data.Data Data.Torrent.TorrentInfo
+ Data.Torrent: instance GHC.Read.Read Data.Torrent.Torrent
+ Data.Torrent: instance GHC.Read.Read Data.Torrent.TorrentFile
+ Data.Torrent: instance GHC.Read.Read Data.Torrent.TorrentInfo
+ Data.Torrent: instance GHC.Show.Show Data.Torrent.Torrent
+ Data.Torrent: instance GHC.Show.Show Data.Torrent.TorrentFile
+ Data.Torrent: instance GHC.Show.Show Data.Torrent.TorrentInfo
+ Data.Torrent: showTorrent :: Torrent -> ByteString
+ Data.Torrent.Scrape: [scrapeLeechers] :: ScrapeInfo -> Integer
+ Data.Torrent.Scrape: [scrapeSeeds] :: ScrapeInfo -> Integer
+ Data.Torrent.Scrape: instance GHC.Read.Read Data.Torrent.Scrape.ScrapeInfo
+ Data.Torrent.Scrape: instance GHC.Show.Show Data.Torrent.Scrape.ScrapeInfo

Files

CHANGELOG view
@@ -1,3 +1,9 @@+haskell-torrent (10000.0.1) unstable; urgency=medium++  * Added showTorrent.++ -- Joey Hess <id@joeyh.name>  Fri, 11 Nov 2016 15:06:46 -0400+ haskell-torrent (10000.0.0) unstable; urgency=medium    * Taking over upstream maintenance of this package.
src/Data/Torrent.hs view
@@ -1,3 +1,7 @@+-- | BitTorrent metainfo files+--+-- <http://www.bittorrent.org/beps/bep_0003.html>+ {-# LANGUAGE DeriveDataTypeable #-}  module Data.Torrent@@ -7,6 +11,7 @@ 	, readTorrent 	, serializeTorrent 	, torrentSize+	, showTorrent 	) where  import Data.BEncode@@ -115,3 +120,12 @@ 		[ ("length", BInt (fileLength file)) 		, ("path", BList (map BString $ filePath file)) 		]++-- | generates a torrent file+--+-- Due to lexographical ordering requirements of BEncoded data, this+-- should generate the same ByteString that readTorrent read to generate+-- the Torrent. However, torrent files may contain extensions and+-- nonstandard fields that prevent that from holding for all torrent files.+showTorrent :: Torrent -> ByteString+showTorrent = bPack . serializeTorrent
torrent.cabal view
@@ -1,5 +1,5 @@ Name: torrent-Version: 10000.0.0+Version: 10000.0.1 Cabal-Version: >= 1.6 Maintainer: Joey Hess <id@joeyh.name> Author: Lemmih <lemmih@gmail.com>@@ -12,7 +12,7 @@ Synopsis: BitTorrent file parser and generater  Library-  GHC-Options: -Wall+  GHC-Options: -Wall -fno-warn-tabs   Hs-Source-Dirs: src   Exposed-Modules:     Data.Torrent