summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 68074e2b..c58b75e1 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -37,7 +37,7 @@ import Network.BitTorrent.DHT.Search
37import Network.BitTorrent.DHT.Query 37import Network.BitTorrent.DHT.Query
38import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..)) 38import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..))
39import Network.KRPC.Manager (QueryFailure(..)) 39import Network.KRPC.Manager (QueryFailure(..))
40import Network.KRPC.Message (ReflectedIP(..)) 40import Network.KRPC.Message (ReflectedIP(..),KMessageOf)
41import qualified Network.BitTorrent.DHT.Routing as R 41import qualified Network.BitTorrent.DHT.Routing as R
42import Network.BitTorrent.DHT.Session 42import Network.BitTorrent.DHT.Session
43import Network.SocketLike 43import Network.SocketLike
@@ -71,7 +71,7 @@ showReport kvs = do
71 (k,v) <- kvs 71 (k,v) <- kvs
72 concat [ printf " %-*s" (colwidth+1) k, v, "\n" ] 72 concat [ printf " %-*s" (colwidth+1) k, v, "\n" ]
73 73
74showEnry :: Show a => (NodeInfo a, t) -> [Char] 74showEnry :: Show a => (NodeInfo KMessageOf a (), t) -> [Char]
75showEnry (n,_) = intercalate " " 75showEnry (n,_) = intercalate " "
76 [ show $ pPrint (nodeId n) 76 [ show $ pPrint (nodeId n)
77 , show $ nodeAddr n 77 , show $ nodeAddr n