summaryrefslogtreecommitdiff
path: root/src/Data/Torrent/Progress.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-07 23:10:27 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-07 23:10:27 +0400
commit1ae7d4877a2a30131babbee54bc0c24651eaba90 (patch)
tree1d2b6835d70a546859569933d0a34037b029d7c5 /src/Data/Torrent/Progress.hs
parent44fc77ee51b5aef9d43e3d384845d73646ea1d0e (diff)
Move JSON options to separate module
Diffstat (limited to 'src/Data/Torrent/Progress.hs')
-rw-r--r--src/Data/Torrent/Progress.hs4
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
49import Text.PrettyPrint as PP 49import Text.PrettyPrint as PP
50import Text.PrettyPrint.Class 50import Text.PrettyPrint.Class
51 51
52import 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.
68instance Serialize Progress where 70instance Serialize Progress where