diff options
Diffstat (limited to 'bittorrent')
-rw-r--r-- | bittorrent/src/Network/BitTorrent/Exchange/Message.hs | 5 | ||||
-rw-r--r-- | bittorrent/src/Network/BitTorrent/Tracker/Message.hs | 5 | ||||
-rw-r--r-- | bittorrent/tests/Network/BitTorrent/CoreSpec.hs | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/bittorrent/src/Network/BitTorrent/Exchange/Message.hs b/bittorrent/src/Network/BitTorrent/Exchange/Message.hs index 2c6770f7..5c096523 100644 --- a/bittorrent/src/Network/BitTorrent/Exchange/Message.hs +++ b/bittorrent/src/Network/BitTorrent/Exchange/Message.hs | |||
@@ -32,6 +32,7 @@ | |||
32 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} | 32 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} |
33 | {-# LANGUAGE DeriveDataTypeable #-} | 33 | {-# LANGUAGE DeriveDataTypeable #-} |
34 | {-# LANGUAGE TemplateHaskell #-} | 34 | {-# LANGUAGE TemplateHaskell #-} |
35 | {-# LANGUAGE CPP #-} | ||
35 | {-# OPTIONS -fno-warn-orphans #-} | 36 | {-# OPTIONS -fno-warn-orphans #-} |
36 | module Network.BitTorrent.Exchange.Message | 37 | module Network.BitTorrent.Exchange.Message |
37 | ( -- * Capabilities | 38 | ( -- * Capabilities |
@@ -111,7 +112,11 @@ import Data.String | |||
111 | import Data.Text as T | 112 | import Data.Text as T |
112 | import Data.Typeable | 113 | import Data.Typeable |
113 | import Data.Word | 114 | import Data.Word |
115 | #if MIN_VERSION_iproute(1,7,4) | ||
116 | import Data.IP hiding (fromSockAddr) | ||
117 | #else | ||
114 | import Data.IP | 118 | import Data.IP |
119 | #endif | ||
115 | import Network | 120 | import Network |
116 | import Network.Socket hiding (KeepAlive) | 121 | import Network.Socket hiding (KeepAlive) |
117 | import Text.PrettyPrint as PP hiding ((<>)) | 122 | import Text.PrettyPrint as PP hiding ((<>)) |
diff --git a/bittorrent/src/Network/BitTorrent/Tracker/Message.hs b/bittorrent/src/Network/BitTorrent/Tracker/Message.hs index e01ebbf4..ab492275 100644 --- a/bittorrent/src/Network/BitTorrent/Tracker/Message.hs +++ b/bittorrent/src/Network/BitTorrent/Tracker/Message.hs | |||
@@ -27,6 +27,7 @@ | |||
27 | {-# LANGUAGE DeriveFunctor #-} | 27 | {-# LANGUAGE DeriveFunctor #-} |
28 | {-# LANGUAGE ScopedTypeVariables #-} | 28 | {-# LANGUAGE ScopedTypeVariables #-} |
29 | {-# LANGUAGE TypeFamilies #-} | 29 | {-# LANGUAGE TypeFamilies #-} |
30 | {-# LANGUAGE CPP #-} | ||
30 | {-# OPTIONS -fno-warn-orphans #-} | 31 | {-# OPTIONS -fno-warn-orphans #-} |
31 | module Network.BitTorrent.Tracker.Message | 32 | module Network.BitTorrent.Tracker.Message |
32 | ( -- * Announce | 33 | ( -- * Announce |
@@ -115,7 +116,11 @@ import Data.Text (Text) | |||
115 | import Data.Text.Encoding | 116 | import Data.Text.Encoding |
116 | import Data.Typeable | 117 | import Data.Typeable |
117 | import Data.Word | 118 | import Data.Word |
119 | #if MIN_VERSION_iproute(1,7,4) | ||
120 | import Data.IP hiding (fromSockAddr) | ||
121 | #else | ||
118 | import Data.IP | 122 | import Data.IP |
123 | #endif | ||
119 | import Network | 124 | import Network |
120 | import Network.HTTP.Types.QueryLike | 125 | import Network.HTTP.Types.QueryLike |
121 | import Network.HTTP.Types.URI hiding (urlEncode) | 126 | import Network.HTTP.Types.URI hiding (urlEncode) |
diff --git a/bittorrent/tests/Network/BitTorrent/CoreSpec.hs b/bittorrent/tests/Network/BitTorrent/CoreSpec.hs index 5bf900b2..e9b17a42 100644 --- a/bittorrent/tests/Network/BitTorrent/CoreSpec.hs +++ b/bittorrent/tests/Network/BitTorrent/CoreSpec.hs | |||
@@ -4,7 +4,11 @@ module Network.BitTorrent.CoreSpec (spec) where | |||
4 | import Control.Applicative | 4 | import Control.Applicative |
5 | import Data.BEncode as BE | 5 | import Data.BEncode as BE |
6 | import Data.ByteString.Lazy as BL | 6 | import Data.ByteString.Lazy as BL |
7 | #if MIN_VERSION_iproute(1,7,4) | ||
8 | import Data.IP hiding (fromSockAddr) | ||
9 | #else | ||
7 | import Data.IP | 10 | import Data.IP |
11 | #endif | ||
8 | import Data.Serialize as S | 12 | import Data.Serialize as S |
9 | import Data.String | 13 | import Data.String |
10 | import Data.Text.Encoding as T | 14 | import Data.Text.Encoding as T |
@@ -302,4 +306,4 @@ spec = do | |||
302 | fingerprint "-ML2.7.2-xxxxxxxxxxx" `shouldBe` "MLdonkey-0" | 306 | fingerprint "-ML2.7.2-xxxxxxxxxxx" `shouldBe` "MLdonkey-0" |
303 | 307 | ||
304 | -- TODO XBT, Bits on Wheels, Queen Bee, BitTyrant, TorrenTopia, | 308 | -- TODO XBT, Bits on Wheels, Queen Bee, BitTyrant, TorrenTopia, |
305 | -- BitSpirit, Rufus, G3 Torrent, FlashGet \ No newline at end of file | 309 | -- BitSpirit, Rufus, G3 Torrent, FlashGet |