summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorjim@bo <jim@bo>2018-06-20 03:08:45 -0400
committerjim@bo <jim@bo>2018-06-20 18:00:29 -0400
commit07202340d82fddc32f1cad82a437a438565cc2ba (patch)
treea836218263b4cb45ab3cc39ddeee5d24619ab976 /src/Network
parente1c7ba154a1010cf33ff4daa045d8f4542e2267c (diff)
port to newer versions of packages:
* iproute >= 1.7.4 * conduit-extra >= 1.1.7
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/Address.hs4
-rw-r--r--src/Network/BitTorrent/MainlineDHT.hs4
-rw-r--r--src/Network/Kademlia.hs4
-rw-r--r--src/Network/Kademlia/Bootstrap.hs4
-rw-r--r--src/Network/Tox.hs4
-rw-r--r--src/Network/Tox/DHT/Handlers.hs4
-rw-r--r--src/Network/Tox/NodeId.hs4
-rw-r--r--src/Network/Tox/Onion/Handlers.hs4
-rw-r--r--src/Network/Tox/Onion/Transport.hs5
9 files changed, 37 insertions, 0 deletions
diff --git a/src/Network/Address.hs b/src/Network/Address.hs
index 4f163b79..3766d614 100644
--- a/src/Network/Address.hs
+++ b/src/Network/Address.hs
@@ -103,7 +103,11 @@ import qualified Data.ByteString.Lazy.Builder as BS
103import Data.Char 103import Data.Char
104import Data.Convertible 104import Data.Convertible
105import Data.Default 105import Data.Default
106#if MIN_VERSION_iproute(1,7,4)
107import Data.IP hiding (fromSockAddr)
108#else
106import Data.IP 109import Data.IP
110#endif
107import Data.List as L 111import Data.List as L
108import Data.List.Split as L 112import Data.List.Split as L
109import Data.Maybe (fromMaybe, catMaybes, mapMaybe) 113import Data.Maybe (fromMaybe, catMaybes, mapMaybe)
diff --git a/src/Network/BitTorrent/MainlineDHT.hs b/src/Network/BitTorrent/MainlineDHT.hs
index 991473a9..847d820b 100644
--- a/src/Network/BitTorrent/MainlineDHT.hs
+++ b/src/Network/BitTorrent/MainlineDHT.hs
@@ -40,7 +40,11 @@ import Data.Default
40import Data.Digest.CRC32C 40import Data.Digest.CRC32C
41import Data.Function (fix) 41import Data.Function (fix)
42import Data.Hashable 42import Data.Hashable
43#if MIN_VERSION_iproute(1,7,4)
44import Data.IP hiding (fromSockAddr)
45#else
43import Data.IP 46import Data.IP
47#endif
44import Data.List 48import Data.List
45import Data.Maybe 49import Data.Maybe
46import Data.Monoid 50import Data.Monoid
diff --git a/src/Network/Kademlia.hs b/src/Network/Kademlia.hs
index 0ab26e80..50c98967 100644
--- a/src/Network/Kademlia.hs
+++ b/src/Network/Kademlia.hs
@@ -22,7 +22,11 @@ import Control.Concurrent.STM
22import Control.Monad 22import Control.Monad
23import Data.Bits 23import Data.Bits
24import Data.Hashable 24import Data.Hashable
25#if MIN_VERSION_iproute(1,7,4)
26import Data.IP hiding (fromSockAddr)
27#else
25import Data.IP 28import Data.IP
29#endif
26import Data.Monoid 30import Data.Monoid
27import Data.Serialize (Serialize) 31import Data.Serialize (Serialize)
28import Data.Time.Clock.POSIX (POSIXTime) 32import Data.Time.Clock.POSIX (POSIXTime)
diff --git a/src/Network/Kademlia/Bootstrap.hs b/src/Network/Kademlia/Bootstrap.hs
index bc8188a7..d77f524c 100644
--- a/src/Network/Kademlia/Bootstrap.hs
+++ b/src/Network/Kademlia/Bootstrap.hs
@@ -29,7 +29,11 @@ import Control.Concurrent.STM
29import Control.Monad 29import Control.Monad
30import Data.Bits 30import Data.Bits
31import Data.Hashable 31import Data.Hashable
32#if MIN_VERSION_iproute(1,7,4)
33import Data.IP hiding (fromSockAddr)
34#else
32import Data.IP 35import Data.IP
36#endif
33import Data.Monoid 37import Data.Monoid
34import Data.Serialize (Serialize) 38import Data.Serialize (Serialize)
35import Data.Time.Clock.POSIX (POSIXTime) 39import Data.Time.Clock.POSIX (POSIXTime)
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 89a8d99f..45f8e633 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -62,7 +62,11 @@ import Data.Conduit (Source,Sink,Flush(..))
62import Data.Data 62import Data.Data
63import Data.Functor.Contravariant 63import Data.Functor.Contravariant
64import Data.Hashable 64import Data.Hashable
65#if MIN_VERSION_iproute(1,7,4)
66import Data.IP hiding (fromSockAddr)
67#else
65import Data.IP 68import Data.IP
69#endif
66import Data.Maybe 70import Data.Maybe
67import qualified Data.MinMaxPSQ as MinMaxPSQ 71import qualified Data.MinMaxPSQ as MinMaxPSQ
68 ;import Data.MinMaxPSQ (MinMaxPSQ') 72 ;import Data.MinMaxPSQ (MinMaxPSQ')
diff --git a/src/Network/Tox/DHT/Handlers.hs b/src/Network/Tox/DHT/Handlers.hs
index 7e986fdd..43169fa0 100644
--- a/src/Network/Tox/DHT/Handlers.hs
+++ b/src/Network/Tox/DHT/Handlers.hs
@@ -32,7 +32,11 @@ import Network.Socket
32import Data.Hashable 32import Data.Hashable
33import qualified Data.HashMap.Strict as HashMap 33import qualified Data.HashMap.Strict as HashMap
34 ;import Data.HashMap.Strict (HashMap) 34 ;import Data.HashMap.Strict (HashMap)
35#if MIN_VERSION_iproute(1,7,4)
36import Data.IP hiding (fromSockAddr)
37#else
35import Data.IP 38import Data.IP
39#endif
36import Data.Ord 40import Data.Ord
37import Data.Maybe 41import Data.Maybe
38import Data.Bits 42import Data.Bits
diff --git a/src/Network/Tox/NodeId.hs b/src/Network/Tox/NodeId.hs
index f3013142..5eb3742e 100644
--- a/src/Network/Tox/NodeId.hs
+++ b/src/Network/Tox/NodeId.hs
@@ -59,7 +59,11 @@ import qualified Data.ByteString.Char8 as C8
59import Data.Char 59import Data.Char
60import Data.Data 60import Data.Data
61import Data.Hashable 61import Data.Hashable
62#if MIN_VERSION_iproute(1,7,4)
63import Data.IP hiding (fromSockAddr)
64#else
62import Data.IP 65import Data.IP
66#endif
63import Data.List 67import Data.List
64import Data.Maybe 68import Data.Maybe
65import Data.Serialize as S 69import Data.Serialize as S
diff --git a/src/Network/Tox/Onion/Handlers.hs b/src/Network/Tox/Onion/Handlers.hs
index 263d60bd..f497a1bf 100644
--- a/src/Network/Tox/Onion/Handlers.hs
+++ b/src/Network/Tox/Onion/Handlers.hs
@@ -44,7 +44,11 @@ import GHC.Conc (labelThread)
44import Control.Concurrent.STM 44import Control.Concurrent.STM
45import Data.Time.Clock.POSIX (POSIXTime, getPOSIXTime) 45import Data.Time.Clock.POSIX (POSIXTime, getPOSIXTime)
46import Network.Socket 46import Network.Socket
47#if MIN_VERSION_iproute(1,7,4)
48import Data.IP hiding (fromSockAddr)
49#else
47import Data.IP 50import Data.IP
51#endif
48import Data.Maybe 52import Data.Maybe
49import Data.Bits 53import Data.Bits
50import Data.Ord 54import Data.Ord
diff --git a/src/Network/Tox/Onion/Transport.hs b/src/Network/Tox/Onion/Transport.hs
index 864e831f..0da48f76 100644
--- a/src/Network/Tox/Onion/Transport.hs
+++ b/src/Network/Tox/Onion/Transport.hs
@@ -1,3 +1,4 @@
1{-# LANGUAGE CPP #-}
1{-# LANGUAGE DataKinds #-} 2{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE FlexibleContexts #-} 3{-# LANGUAGE FlexibleContexts #-}
3{-# LANGUAGE FlexibleInstances #-} 4{-# LANGUAGE FlexibleInstances #-}
@@ -65,7 +66,11 @@ import Data.Coerce
65import Data.Function 66import Data.Function
66import Data.Functor.Contravariant 67import Data.Functor.Contravariant
67import Data.Functor.Identity 68import Data.Functor.Identity
69#if MIN_VERSION_iproute(1,7,4)
70import Data.IP hiding (fromSockAddr)
71#else
68import Data.IP 72import Data.IP
73#endif
69import Data.Maybe 74import Data.Maybe
70import Data.Monoid 75import Data.Monoid
71import Data.Serialize as S 76import Data.Serialize as S