diff options
author | jim@bo <jim@bo> | 2018-06-20 03:08:45 -0400 |
---|---|---|
committer | jim@bo <jim@bo> | 2018-06-20 18:00:29 -0400 |
commit | 07202340d82fddc32f1cad82a437a438565cc2ba (patch) | |
tree | a836218263b4cb45ab3cc39ddeee5d24619ab976 /bittorrent/src/Network/BitTorrent/Tracker/Message.hs | |
parent | e1c7ba154a1010cf33ff4daa045d8f4542e2267c (diff) |
port to newer versions of packages:
* iproute >= 1.7.4
* conduit-extra >= 1.1.7
Diffstat (limited to 'bittorrent/src/Network/BitTorrent/Tracker/Message.hs')
-rw-r--r-- | bittorrent/src/Network/BitTorrent/Tracker/Message.hs | 5 |
1 files changed, 5 insertions, 0 deletions
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) |