diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-01 12:32:49 -0800 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-01 12:32:49 -0800 |
commit | f4fcc6c1970ec8d63e185e49dff65a6bd77011ad (patch) | |
tree | 5472de9cdb8afd6b15752f796ece829bf9e0316a /src/Network/BitTorrent/Tracker/RPC | |
parent | 2749007675a6ff28979fa793b48ffe910635c708 (diff) | |
parent | 5dc7a19e42da1ee1cc3570ca74a55c32d7d243e0 (diff) |
Merge pull request #2 from DanielG/master
Fix building with aeson >= 0.6.2.0
Diffstat (limited to 'src/Network/BitTorrent/Tracker/RPC')
-rw-r--r-- | src/Network/BitTorrent/Tracker/RPC/Message.hs | 8 |
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. |
99 | instance QueryValueLike Event where | 99 | instance 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. |
169 | instance Serialize AnnounceQuery where | 169 | instance 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. |
392 | instance BEncode AnnounceInfo where | 392 | instance 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. |
530 | instance BEncode ScrapeEntry where | 530 | instance BEncode ScrapeEntry where |