summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 6dbc1120..52ff3c98 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -229,7 +229,8 @@ instance Kademlia Tox.Message where
229 nameFindNodes _ = Tox.GetNodes 229 nameFindNodes _ = Tox.GetNodes
230 initializeDHTData = return ToxData 230 initializeDHTData = return ToxData
231 231
232instance Pretty (NodeId Tox.Message) where 232instance Pretty (NodeId Tox.Message) where pPrint (Tox.NodeId nid) = encodeHexDoc nid
233
233instance Pretty (NodeInfo Tox.Message IPv4 ()) where 234instance Pretty (NodeInfo Tox.Message IPv4 ()) where
234instance Pretty (NodeInfo Tox.Message IPv4 Bool) where -- TODO 235instance Pretty (NodeInfo Tox.Message IPv4 Bool) where -- TODO
235instance Read (NodeId KMessageOf) where 236instance Read (NodeId KMessageOf) where