summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-02 00:55:06 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-02 00:55:06 +0400
commitcc1f6959280431a3554e0c0f01960b7b67826c65 (patch)
tree62d60709efc26889dfb3f4588ef546ece63c06d4 /src/Network/BitTorrent/Tracker
parent9a73e365f4c29080ab6ce04290b36e3189171289 (diff)
parentaf9573a7519e76c10a0cca168355ca866d22c429 (diff)
Merge branch 'master' of https://github.com/cobit/bittorrent
Diffstat (limited to 'src/Network/BitTorrent/Tracker')
-rw-r--r--src/Network/BitTorrent/Tracker/RPC/Message.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Network/BitTorrent/Tracker/RPC/Message.hs b/src/Network/BitTorrent/Tracker/RPC/Message.hs
index cefe96d5..3900ff64 100644
--- a/src/Network/BitTorrent/Tracker/RPC/Message.hs
+++ b/src/Network/BitTorrent/Tracker/RPC/Message.hs
@@ -104,7 +104,7 @@ data Event = Started
104 -- ^ To be sent when the peer completes a download. 104 -- ^ To be sent when the peer completes a download.
105 deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable) 105 deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
106 106
107$(deriveJSON (L.map toLower . L.dropWhile isLower) ''Event) 107$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''Event)
108 108
109-- | HTTP tracker protocol compatible encoding. 109-- | HTTP tracker protocol compatible encoding.
110instance QueryValueLike Event where 110instance QueryValueLike Event where
@@ -174,7 +174,7 @@ data AnnounceQuery = AnnounceQuery
174 , reqEvent :: Maybe Event 174 , reqEvent :: Maybe Event
175 } deriving (Show, Eq, Typeable) 175 } deriving (Show, Eq, Typeable)
176 176
177$(deriveJSON (L.map toLower . L.dropWhile isLower) ''AnnounceQuery) 177$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''AnnounceQuery)
178 178
179-- | UDP tracker protocol compatible encoding. 179-- | UDP tracker protocol compatible encoding.
180instance Serialize AnnounceQuery where 180instance Serialize AnnounceQuery where
@@ -416,7 +416,7 @@ data AnnounceInfo =
416 , respWarning :: !(Maybe Text) 416 , respWarning :: !(Maybe Text)
417 } deriving (Show, Typeable) 417 } deriving (Show, Typeable)
418 418
419$(deriveJSON (L.map toLower . L.dropWhile isLower) ''AnnounceInfo) 419$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''AnnounceInfo)
420 420
421-- | HTTP tracker protocol compatible encoding. 421-- | HTTP tracker protocol compatible encoding.
422instance BEncode AnnounceInfo where 422instance BEncode AnnounceInfo where
@@ -561,7 +561,7 @@ data ScrapeEntry = ScrapeEntry {
561 , siName :: !(Maybe Text) 561 , siName :: !(Maybe Text)
562 } deriving (Show, Eq, Typeable) 562 } deriving (Show, Eq, Typeable)
563 563
564$(deriveJSON (L.map toLower . L.dropWhile isLower) ''ScrapeEntry) 564$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''ScrapeEntry)
565 565
566-- | HTTP tracker protocol compatible encoding. 566-- | HTTP tracker protocol compatible encoding.
567instance BEncode ScrapeEntry where 567instance BEncode ScrapeEntry where