summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker/RPC/Message.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/Tracker/RPC/Message.hs')
-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 cec68169..213f1e83 100644
--- a/src/Network/BitTorrent/Tracker/RPC/Message.hs
+++ b/src/Network/BitTorrent/Tracker/RPC/Message.hs
@@ -93,7 +93,7 @@ data Event = Started
93 -- ^ To be sent when the peer completes a download. 93 -- ^ To be sent when the peer completes a download.
94 deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable) 94 deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
95 95
96$(deriveJSON (L.map toLower . L.dropWhile isLower) ''Event) 96$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''Event)
97 97
98-- | HTTP tracker protocol compatible encoding. 98-- | HTTP tracker protocol compatible encoding.
99instance QueryValueLike Event where 99instance QueryValueLike Event where
@@ -163,7 +163,7 @@ data AnnounceQuery = AnnounceQuery
163 , reqEvent :: Maybe Event 163 , reqEvent :: Maybe Event
164 } deriving (Show, Eq, Typeable) 164 } deriving (Show, Eq, Typeable)
165 165
166$(deriveJSON (L.map toLower . L.dropWhile isLower) ''AnnounceQuery) 166$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''AnnounceQuery)
167 167
168-- | UDP tracker protocol compatible encoding. 168-- | UDP tracker protocol compatible encoding.
169instance Serialize AnnounceQuery where 169instance Serialize AnnounceQuery where
@@ -386,7 +386,7 @@ data AnnounceInfo =
386 , respWarning :: !(Maybe Text) 386 , respWarning :: !(Maybe Text)
387 } deriving (Show, Typeable) 387 } deriving (Show, Typeable)
388 388
389$(deriveJSON (L.map toLower . L.dropWhile isLower) ''AnnounceInfo) 389$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''AnnounceInfo)
390 390
391-- | HTTP tracker protocol compatible encoding. 391-- | HTTP tracker protocol compatible encoding.
392instance BEncode AnnounceInfo where 392instance BEncode AnnounceInfo where
@@ -524,7 +524,7 @@ data ScrapeEntry = ScrapeEntry {
524 , siName :: !(Maybe Text) 524 , siName :: !(Maybe Text)
525 } deriving (Show, Eq, Typeable) 525 } deriving (Show, Eq, Typeable)
526 526
527$(deriveJSON (L.map toLower . L.dropWhile isLower) ''ScrapeEntry) 527$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''ScrapeEntry)
528 528
529-- | HTTP tracker protocol compatible encoding. 529-- | HTTP tracker protocol compatible encoding.
530instance BEncode ScrapeEntry where 530instance BEncode ScrapeEntry where