summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2013-12-01 21:12:40 +0100
committerDaniel Gröber <dxld@darkboxed.org>2013-12-01 21:12:40 +0100
commitb83c5d53be21c03004ebb65d1dc9fe1f841a2a3c (patch)
tree12d58df47e8b1a52173c72e97d29d3b8046fa309 /src/Network/BitTorrent/Exchange
parent2749007675a6ff28979fa793b48ffe910635c708 (diff)
Fix building with aeson >= 0.6.2.0
deriveJSON now takes an Option record instead of a single function. It might be nicer to define a function that takes the fieldLabelModifier function rather than doing it inline everywhere but I didn't know where a good place to put that would be.
Diffstat (limited to 'src/Network/BitTorrent/Exchange')
-rw-r--r--src/Network/BitTorrent/Exchange/Status.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Exchange/Status.hs b/src/Network/BitTorrent/Exchange/Status.hs
index 7920f2a1..03a71bbe 100644
--- a/src/Network/BitTorrent/Exchange/Status.hs
+++ b/src/Network/BitTorrent/Exchange/Status.hs
@@ -35,7 +35,7 @@ data PeerStatus = PeerStatus {
35 } deriving (Show, Eq) 35 } deriving (Show, Eq)
36 36
37$(makeLenses ''PeerStatus) 37$(makeLenses ''PeerStatus)
38$(deriveJSON L.tail ''PeerStatus) 38$(deriveJSON defaultOptions { fieldLabelModifier = L.tail } ''PeerStatus)
39 39
40instance Default PeerStatus where 40instance Default PeerStatus where
41 def = PeerStatus True False 41 def = PeerStatus True False