summaryrefslogtreecommitdiff
path: root/src/Data/Torrent/Piece.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/Torrent/Piece.hs')
-rw-r--r--src/Data/Torrent/Piece.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Data/Torrent/Piece.hs b/src/Data/Torrent/Piece.hs
index f7c6257b..31680ce8 100644
--- a/src/Data/Torrent/Piece.hs
+++ b/src/Data/Torrent/Piece.hs
@@ -7,8 +7,9 @@
7-- 7--
8-- Pieces are used to validate torrent content. 8-- Pieces are used to validate torrent content.
9-- 9--
10{-# LANGUAGE TemplateHaskell #-} 10{-# LANGUAGE TemplateHaskell #-}
11{-# LANGUAGE DeriveDataTypeable #-} 11{-# LANGUAGE DeriveDataTypeable #-}
12{-# LANGUAGE DeriveFunctor #-}
12{-# LANGUAGE GeneralizedNewtypeDeriving #-} 13{-# LANGUAGE GeneralizedNewtypeDeriving #-}
13module Data.Torrent.Piece 14module Data.Torrent.Piece
14 ( -- * Piece attributes 15 ( -- * Piece attributes
@@ -115,7 +116,7 @@ data Piece a = Piece
115 116
116 -- | Payload. 117 -- | Payload.
117 , pieceData :: !a 118 , pieceData :: !a
118 } deriving (Show, Read, Eq, Typeable) 119 } deriving (Show, Read, Eq, Functor, Typeable)
119 120
120$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''Piece) 121$(deriveJSON defaultOptions { fieldLabelModifier = (L.map toLower . L.dropWhile isLower) } ''Piece)
121 122