diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2013-12-01 21:12:40 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2013-12-01 21:12:40 +0100 |
commit | b83c5d53be21c03004ebb65d1dc9fe1f841a2a3c (patch) | |
tree | 12d58df47e8b1a52173c72e97d29d3b8046fa309 /src/Data/Torrent/Progress.hs | |
parent | 2749007675a6ff28979fa793b48ffe910635c708 (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/Data/Torrent/Progress.hs')
-rw-r--r-- | src/Data/Torrent/Progress.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Torrent/Progress.hs b/src/Data/Torrent/Progress.hs index 1a4a68e2..34f8f299 100644 --- a/src/Data/Torrent/Progress.hs +++ b/src/Data/Torrent/Progress.hs | |||
@@ -62,7 +62,7 @@ data Progress = Progress | |||
62 | } deriving (Show, Read, Eq) | 62 | } deriving (Show, Read, Eq) |
63 | 63 | ||
64 | $(makeLenses ''Progress) | 64 | $(makeLenses ''Progress) |
65 | $(deriveJSON L.tail ''Progress) | 65 | $(deriveJSON defaultOptions { fieldLabelModifier = L.tail } ''Progress) |
66 | 66 | ||
67 | -- | UDP tracker compatible encoding. | 67 | -- | UDP tracker compatible encoding. |
68 | instance Serialize Progress where | 68 | instance Serialize Progress where |