diff options
Diffstat (limited to 'src/Network/DHT/Mainline.hs')
-rw-r--r-- | src/Network/DHT/Mainline.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Network/DHT/Mainline.hs b/src/Network/DHT/Mainline.hs index aefd7742..b756ff6a 100644 --- a/src/Network/DHT/Mainline.hs +++ b/src/Network/DHT/Mainline.hs | |||
@@ -217,7 +217,7 @@ instance Serialize (Response Ping) where | |||
217 | #endif | 217 | #endif |
218 | 218 | ||
219 | -- | \"q\" = \"ping\" | 219 | -- | \"q\" = \"ping\" |
220 | instance KRPC (Query KMessageOf (Ping KMessageOf)) (Response KMessageOf (Ping KMessageOf)) where | 220 | instance KRPC KMessageOf (Query KMessageOf (Ping KMessageOf)) (Response KMessageOf (Ping KMessageOf)) where |
221 | #ifdef VERSION_bencoding | 221 | #ifdef VERSION_bencoding |
222 | method = "ping" | 222 | method = "ping" |
223 | #else | 223 | #else |
@@ -301,7 +301,7 @@ instance Serialize (Response KMessageOf (NodeFound KMessageOf ip)) where | |||
301 | 301 | ||
302 | -- | \"q\" == \"find_node\" | 302 | -- | \"q\" == \"find_node\" |
303 | instance (Address ip, Typeable ip) | 303 | instance (Address ip, Typeable ip) |
304 | => KRPC (Query KMessageOf (FindNode KMessageOf ip)) (Response KMessageOf (NodeFound KMessageOf ip)) where | 304 | => KRPC KMessageOf (Query KMessageOf (FindNode KMessageOf ip)) (Response KMessageOf (NodeFound KMessageOf ip)) where |
305 | #ifdef VERSION_bencoding | 305 | #ifdef VERSION_bencoding |
306 | method = "find_node" | 306 | method = "find_node" |
307 | #else | 307 | #else |
@@ -370,7 +370,7 @@ instance (Typeable ip, Serialize ip) => BEncode (GotPeers ip) where | |||
370 | 370 | ||
371 | -- | \"q" = \"get_peers\" | 371 | -- | \"q" = \"get_peers\" |
372 | instance (Typeable ip, Serialize ip) => | 372 | instance (Typeable ip, Serialize ip) => |
373 | KRPC (Query KMessageOf (GetPeers ip)) (Response KMessageOf (GotPeers ip)) where | 373 | KRPC KMessageOf (Query KMessageOf (GetPeers ip)) (Response KMessageOf (GotPeers ip)) where |
374 | method = "get_peers" | 374 | method = "get_peers" |
375 | 375 | ||
376 | {----------------------------------------------------------------------- | 376 | {----------------------------------------------------------------------- |
@@ -442,7 +442,7 @@ instance BEncode Announced where | |||
442 | fromBEncode _ = pure Announced | 442 | fromBEncode _ = pure Announced |
443 | 443 | ||
444 | -- | \"q" = \"announce\" | 444 | -- | \"q" = \"announce\" |
445 | instance KRPC (Query KMessageOf Announce) (Response KMessageOf Announced) where | 445 | instance KRPC KMessageOf (Query KMessageOf Announce) (Response KMessageOf Announced) where |
446 | method = "announce_peer" | 446 | method = "announce_peer" |
447 | 447 | ||
448 | -- endif VERSION_bencoding | 448 | -- endif VERSION_bencoding |