summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-11-06 03:20:46 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-11-06 03:20:46 +0400
commitc2a8c8338a63001e03e65dec1a5b81fe33bdba37 (patch)
tree745cd9f6c447cc3e6c0f4578cd18507ba7f48b6e
parent78d991555613eab5e76cc6b13ec801b7e76a63e9 (diff)
Add torrent content type
-rw-r--r--src/Data/Torrent.hs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs
index 2733956c..bb7485cf 100644
--- a/src/Data/Torrent.hs
+++ b/src/Data/Torrent.hs
@@ -51,6 +51,9 @@ module Data.Torrent
51 -- * Construction 51 -- * Construction
52 , nullTorrent 52 , nullTorrent
53 53
54 -- * Mime types
55 , typeTorrent
56
54 -- * File paths 57 -- * File paths
55 , torrentExt 58 , torrentExt
56 , isTorrentPath 59 , isTorrentPath
@@ -269,7 +272,11 @@ nullTorrent ann info = Torrent
269 ann Nothing Nothing Nothing Nothing Nothing 272 ann Nothing Nothing Nothing Nothing Nothing
270 info Nothing Nothing Nothing 273 info Nothing Nothing Nothing
271 274
272-- | Extension usually used for torrent metafiles. 275-- | Mime type of torrent files.
276typeTorrent :: BS.ByteString
277typeTorrent = "application/x-bittorrent"
278
279-- | Extension usually used for torrent files.
273torrentExt :: String 280torrentExt :: String
274torrentExt = "torrent" 281torrentExt = "torrent"
275 282