diff options
author | joe <joe@jerkface.net> | 2017-06-08 13:37:22 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-06-08 13:37:22 -0400 |
commit | ce4ff7cfdc77629b347d325fca62250d5e59794e (patch) | |
tree | 7f369611cf214ce9c53621db150bc87c6c0c9033 /src/Network | |
parent | 3202734fa9a0bd72c8c91279c83a4674432c4f11 (diff) |
Renamed Network.RPC -> Network.DatagramServer.Types
Diffstat (limited to 'src/Network')
-rw-r--r-- | src/Network/BitTorrent/Address.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Message.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Query.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Routing.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Search.hs | 2 | ||||
-rw-r--r-- | src/Network/DHT/Mainline.hs | 2 | ||||
-rw-r--r-- | src/Network/DatagramServer.hs | 2 | ||||
-rw-r--r-- | src/Network/DatagramServer/Types.hs (renamed from src/Network/RPC.hs) | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/src/Network/BitTorrent/Address.hs b/src/Network/BitTorrent/Address.hs index f364abbe..05c6504c 100644 --- a/src/Network/BitTorrent/Address.hs +++ b/src/Network/BitTorrent/Address.hs | |||
@@ -127,7 +127,7 @@ import System.Locale (defaultTimeLocale) | |||
127 | #endif | 127 | #endif |
128 | import System.Entropy | 128 | import System.Entropy |
129 | import Data.Digest.CRC32C | 129 | import Data.Digest.CRC32C |
130 | import Network.RPC as RPC | 130 | import Network.DatagramServer.Types as RPC |
131 | import Network.KRPC.Message (KMessageOf) | 131 | import Network.KRPC.Message (KMessageOf) |
132 | -- import Network.DHT.Mainline | 132 | -- import Network.DHT.Mainline |
133 | 133 | ||
diff --git a/src/Network/BitTorrent/DHT/Message.hs b/src/Network/BitTorrent/DHT/Message.hs index 706d181a..2a2cee35 100644 --- a/src/Network/BitTorrent/DHT/Message.hs +++ b/src/Network/BitTorrent/DHT/Message.hs | |||
@@ -117,7 +117,7 @@ import Network.BitTorrent.DHT.Token | |||
117 | import Network.DatagramServer () | 117 | import Network.DatagramServer () |
118 | import Network.DHT.Mainline () | 118 | import Network.DHT.Mainline () |
119 | #endif | 119 | #endif |
120 | import Network.RPC hiding (Query,Response) | 120 | import Network.DatagramServer.Types hiding (Query,Response) |
121 | 121 | ||
122 | {----------------------------------------------------------------------- | 122 | {----------------------------------------------------------------------- |
123 | -- envelopes | 123 | -- envelopes |
diff --git a/src/Network/BitTorrent/DHT/Query.hs b/src/Network/BitTorrent/DHT/Query.hs index 0219adfa..90cdcbee 100644 --- a/src/Network/BitTorrent/DHT/Query.hs +++ b/src/Network/BitTorrent/DHT/Query.hs | |||
@@ -99,7 +99,7 @@ import Data.ByteString (ByteString) | |||
99 | import Data.Tox | 99 | import Data.Tox |
100 | #endif | 100 | #endif |
101 | import Network.BitTorrent.Address hiding (NodeId) | 101 | import Network.BitTorrent.Address hiding (NodeId) |
102 | import Network.RPC as RPC hiding (Query,Response) | 102 | import Network.DatagramServer.Types as RPC hiding (Query,Response) |
103 | 103 | ||
104 | {----------------------------------------------------------------------- | 104 | {----------------------------------------------------------------------- |
105 | -- Handlers | 105 | -- Handlers |
diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/BitTorrent/DHT/Routing.hs index 42728a53..c64678e0 100644 --- a/src/Network/BitTorrent/DHT/Routing.hs +++ b/src/Network/BitTorrent/DHT/Routing.hs | |||
@@ -315,7 +315,7 @@ split i b = (Bucket ns qs, Bucket ms rs) | |||
315 | (qs,rs) = runIdentity $ partitionQ bucketQ spanBit $ bktQ b | 315 | (qs,rs) = runIdentity $ partitionQ bucketQ spanBit $ bktQ b |
316 | {- | 316 | {- |
317 | spanBit :: forall (dht :: * -> *) addr u. | 317 | spanBit :: forall (dht :: * -> *) addr u. |
318 | FiniteBits (Network.RPC.NodeId dht) => | 318 | FiniteBits (Network.DatagramServer.Types.NodeId dht) => |
319 | NodeInfo dht addr u -> Bool | 319 | NodeInfo dht addr u -> Bool |
320 | -} | 320 | -} |
321 | spanBit :: NodeInfo dht addr u -> Bool | 321 | spanBit :: NodeInfo dht addr u -> Bool |
diff --git a/src/Network/BitTorrent/DHT/Search.hs b/src/Network/BitTorrent/DHT/Search.hs index 844b4575..c60ae48f 100644 --- a/src/Network/BitTorrent/DHT/Search.hs +++ b/src/Network/BitTorrent/DHT/Search.hs | |||
@@ -24,7 +24,7 @@ import qualified Data.MinMaxPSQ as MM | |||
24 | import qualified Data.Wrapper.PSQ as PSQ | 24 | import qualified Data.Wrapper.PSQ as PSQ |
25 | ;import Data.Wrapper.PSQ (pattern (:->), Binding, PSQ) | 25 | ;import Data.Wrapper.PSQ (pattern (:->), Binding, PSQ) |
26 | import Network.BitTorrent.Address hiding (NodeId) | 26 | import Network.BitTorrent.Address hiding (NodeId) |
27 | import Network.RPC | 27 | import Network.DatagramServer.Types |
28 | #ifdef VERSION_bencoding | 28 | #ifdef VERSION_bencoding |
29 | import Network.DHT.Mainline () | 29 | import Network.DHT.Mainline () |
30 | import Network.KRPC.Message (KMessageOf) | 30 | import Network.KRPC.Message (KMessageOf) |
diff --git a/src/Network/DHT/Mainline.hs b/src/Network/DHT/Mainline.hs index 2b7db3c7..cf284404 100644 --- a/src/Network/DHT/Mainline.hs +++ b/src/Network/DHT/Mainline.hs | |||
@@ -25,7 +25,7 @@ import Data.Serialize as S | |||
25 | import Data.String | 25 | import Data.String |
26 | import Data.Typeable | 26 | import Data.Typeable |
27 | import Network.KRPC.Message as KRPC | 27 | import Network.KRPC.Message as KRPC |
28 | import Network.RPC as RPC | 28 | import Network.DatagramServer.Types as RPC |
29 | import Text.PrettyPrint as PP hiding ((<>)) | 29 | import Text.PrettyPrint as PP hiding ((<>)) |
30 | import Text.PrettyPrint.HughesPJClass hiding (($$), (<>)) | 30 | import Text.PrettyPrint.HughesPJClass hiding (($$), (<>)) |
31 | 31 | ||
diff --git a/src/Network/DatagramServer.hs b/src/Network/DatagramServer.hs index c083928d..8a803f1d 100644 --- a/src/Network/DatagramServer.hs +++ b/src/Network/DatagramServer.hs | |||
@@ -134,7 +134,7 @@ import Data.Text as T | |||
134 | import Data.Text.Encoding as T | 134 | import Data.Text.Encoding as T |
135 | import Data.Tuple | 135 | import Data.Tuple |
136 | import Data.Typeable | 136 | import Data.Typeable |
137 | import Network.RPC | 137 | import Network.DatagramServer.Types |
138 | import Network.KRPC.Message | 138 | import Network.KRPC.Message |
139 | import Network.KRPC.Method hiding (Envelope) | 139 | import Network.KRPC.Method hiding (Envelope) |
140 | import qualified Network.KRPC.Method as KRPC (Envelope) | 140 | import qualified Network.KRPC.Method as KRPC (Envelope) |
diff --git a/src/Network/RPC.hs b/src/Network/DatagramServer/Types.hs index 2333766a..ac18e6ce 100644 --- a/src/Network/RPC.hs +++ b/src/Network/DatagramServer/Types.hs | |||
@@ -11,7 +11,7 @@ | |||
11 | {-# LANGUAGE ScopedTypeVariables #-} | 11 | {-# LANGUAGE ScopedTypeVariables #-} |
12 | {-# LANGUAGE TypeFamilies #-} | 12 | {-# LANGUAGE TypeFamilies #-} |
13 | {-# LANGUAGE StandaloneDeriving #-} | 13 | {-# LANGUAGE StandaloneDeriving #-} |
14 | module Network.RPC where | 14 | module Network.DatagramServer.Types where |
15 | 15 | ||
16 | import Control.Applicative | 16 | import Control.Applicative |
17 | import qualified Text.ParserCombinators.ReadP as RP | 17 | import qualified Text.ParserCombinators.ReadP as RP |