diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-29 19:15:08 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-29 19:15:08 +0400 |
commit | 5bf4d49718b5b336befc5f5406eb22c17aa03fe8 (patch) | |
tree | 05091046d754146b1fc0f572db08385940acfd1b /src/Data | |
parent | 7316796fbcbbdc3b13638f36b7c6b762416c4fad (diff) |
Fix all -Wall suggestion
Diffstat (limited to 'src/Data')
-rw-r--r-- | src/Data/Torrent/Client.hs | 7 | ||||
-rw-r--r-- | src/Data/Torrent/Magnet.hs | 1 |
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 #-} | ||
23 | module Data.Torrent.Client | 24 | module Data.Torrent.Client |
24 | ( ClientImpl (..) | 25 | ( ClientImpl (..) |
25 | , ClientInfo (..) | 26 | , ClientInfo (..) |
@@ -29,9 +30,7 @@ module Data.Torrent.Client | |||
29 | import Data.Default | 30 | import Data.Default |
30 | import Data.List as L | 31 | import Data.List as L |
31 | import Data.List.Split as L | 32 | import Data.List.Split as L |
32 | import Data.Monoid | ||
33 | import Data.String | 33 | import Data.String |
34 | import Data.Text as T | ||
35 | import Data.Version | 34 | import Data.Version |
36 | import Text.PrettyPrint hiding ((<>)) | 35 | import Text.PrettyPrint hiding ((<>)) |
37 | import Text.PrettyPrint.Class | 36 | import 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 | {- | |
198 | renderImpl :: ClientImpl -> Text | 197 | renderImpl :: ClientImpl -> Text |
199 | renderImpl = T.pack . L.tail . show | 198 | renderImpl = T.pack . L.tail . show |
200 | 199 | ||
@@ -206,7 +205,7 @@ renderClientInfo ClientInfo {..} = renderImpl ciImpl <> "/" <> renderVersion ciV | |||
206 | 205 | ||
207 | parseClientInfo :: Text -> ClientImpl | 206 | parseClientInfo :: Text -> ClientImpl |
208 | parseClientInfo t = undefined | 207 | parseClientInfo 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 #-} | ||
21 | module Data.Torrent.Magnet | 22 | module Data.Torrent.Magnet |
22 | ( -- * Magnet | 23 | ( -- * Magnet |
23 | Magnet(..) | 24 | Magnet(..) |