diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-07 23:10:27 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-07 23:10:27 +0400 |
commit | 1ae7d4877a2a30131babbee54bc0c24651eaba90 (patch) | |
tree | 1d2b6835d70a546859569933d0a34037b029d7c5 /src/Data/Torrent/Progress.hs | |
parent | 44fc77ee51b5aef9d43e3d384845d73646ea1d0e (diff) |
Move JSON options to separate module
Diffstat (limited to 'src/Data/Torrent/Progress.hs')
-rw-r--r-- | src/Data/Torrent/Progress.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Data/Torrent/Progress.hs b/src/Data/Torrent/Progress.hs index 34f8f299..ffcbf2aa 100644 --- a/src/Data/Torrent/Progress.hs +++ b/src/Data/Torrent/Progress.hs | |||
@@ -49,6 +49,8 @@ import Network.HTTP.Types.QueryLike | |||
49 | import Text.PrettyPrint as PP | 49 | import Text.PrettyPrint as PP |
50 | import Text.PrettyPrint.Class | 50 | import Text.PrettyPrint.Class |
51 | 51 | ||
52 | import Data.Torrent.JSON | ||
53 | |||
52 | 54 | ||
53 | -- | Progress data is considered as dynamic within one client | 55 | -- | Progress data is considered as dynamic within one client |
54 | -- session. This data also should be shared across client application | 56 | -- session. This data also should be shared across client application |
@@ -62,7 +64,7 @@ data Progress = Progress | |||
62 | } deriving (Show, Read, Eq) | 64 | } deriving (Show, Read, Eq) |
63 | 65 | ||
64 | $(makeLenses ''Progress) | 66 | $(makeLenses ''Progress) |
65 | $(deriveJSON defaultOptions { fieldLabelModifier = L.tail } ''Progress) | 67 | $(deriveJSON omitLensPrefix ''Progress) |
66 | 68 | ||
67 | -- | UDP tracker compatible encoding. | 69 | -- | UDP tracker compatible encoding. |
68 | instance Serialize Progress where | 70 | instance Serialize Progress where |