summaryrefslogtreecommitdiff
path: root/src/Data/Torrent
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/Torrent')
-rw-r--r--src/Data/Torrent/Client.hs7
-rw-r--r--src/Data/Torrent/Magnet.hs1
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Data/Torrent/Client.hs b/src/Data/Torrent/Client.hs
index f21a5e92..122f779d 100644
--- a/src/Data/Torrent/Client.hs
+++ b/src/Data/Torrent/Client.hs
@@ -20,6 +20,7 @@
20-- capabilities (such as supported enchancements), this should be 20-- capabilities (such as supported enchancements), this should be
21-- done using 'Network.BitTorrent.Extension'! 21-- done using 'Network.BitTorrent.Extension'!
22-- 22--
23{-# OPTIONS -fno-warn-orphans #-}
23module Data.Torrent.Client 24module Data.Torrent.Client
24 ( ClientImpl (..) 25 ( ClientImpl (..)
25 , ClientInfo (..) 26 , ClientInfo (..)
@@ -29,9 +30,7 @@ module Data.Torrent.Client
29import Data.Default 30import Data.Default
30import Data.List as L 31import Data.List as L
31import Data.List.Split as L 32import Data.List.Split as L
32import Data.Monoid
33import Data.String 33import Data.String
34import Data.Text as T
35import Data.Version 34import Data.Version
36import Text.PrettyPrint hiding ((<>)) 35import Text.PrettyPrint hiding ((<>))
37import Text.PrettyPrint.Class 36import Text.PrettyPrint.Class
@@ -194,7 +193,7 @@ libClientInfo = ClientInfo IlibHSbittorrent version
194{----------------------------------------------------------------------- 193{-----------------------------------------------------------------------
195-- For torrent file 194-- For torrent file
196-----------------------------------------------------------------------} 195-----------------------------------------------------------------------}
197 196{-
198renderImpl :: ClientImpl -> Text 197renderImpl :: ClientImpl -> Text
199renderImpl = T.pack . L.tail . show 198renderImpl = T.pack . L.tail . show
200 199
@@ -206,7 +205,7 @@ renderClientInfo ClientInfo {..} = renderImpl ciImpl <> "/" <> renderVersion ciV
206 205
207parseClientInfo :: Text -> ClientImpl 206parseClientInfo :: Text -> ClientImpl
208parseClientInfo t = undefined 207parseClientInfo t = undefined
209 208-}
210{- 209{-
211-- code used for generation; remove it later on 210-- code used for generation; remove it later on
212 211
diff --git a/src/Data/Torrent/Magnet.hs b/src/Data/Torrent/Magnet.hs
index daa09fbb..887e8379 100644
--- a/src/Data/Torrent/Magnet.hs
+++ b/src/Data/Torrent/Magnet.hs
@@ -18,6 +18,7 @@
18{-# LANGUAGE MultiParamTypeClasses #-} 18{-# LANGUAGE MultiParamTypeClasses #-}
19{-# LANGUAGE TypeSynonymInstances #-} 19{-# LANGUAGE TypeSynonymInstances #-}
20{-# LANGUAGE DeriveDataTypeable #-} 20{-# LANGUAGE DeriveDataTypeable #-}
21{-# OPTIONS -fno-warn-orphans #-}
21module Data.Torrent.Magnet 22module Data.Torrent.Magnet
22 ( -- * Magnet 23 ( -- * Magnet
23 Magnet(..) 24 Magnet(..)