diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-06 03:20:46 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-06 03:20:46 +0400 |
commit | c2a8c8338a63001e03e65dec1a5b81fe33bdba37 (patch) | |
tree | 745cd9f6c447cc3e6c0f4578cd18507ba7f48b6e /src/Data | |
parent | 78d991555613eab5e76cc6b13ec801b7e76a63e9 (diff) |
Add torrent content type
Diffstat (limited to 'src/Data')
-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 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. |
276 | typeTorrent :: BS.ByteString | ||
277 | typeTorrent = "application/x-bittorrent" | ||
278 | |||
279 | -- | Extension usually used for torrent files. | ||
273 | torrentExt :: String | 280 | torrentExt :: String |
274 | torrentExt = "torrent" | 281 | torrentExt = "torrent" |
275 | 282 | ||