summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 527af7e7..4b38a7ea 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -99,7 +99,7 @@ import Presence
99import XMPPServer 99import XMPPServer
100import Connection 100import Connection
101import ToxToXMPP 101import ToxToXMPP
102import qualified Server (ConnectionEvent(..)) 102import qualified Connection.Tcp (ConnectionEvent(..))
103 103
104 104
105showReport :: [(String,String)] -> String 105showReport :: [(String,String)] -> String
@@ -987,7 +987,7 @@ noArgPing :: (x -> IO (Maybe r)) -> [String] -> x -> IO (Maybe r)
987noArgPing f [] x = f x 987noArgPing f [] x = f x
988noArgPing _ _ _ = return Nothing 988noArgPing _ _ _ = return Nothing
989 989
990announceToxConnection :: TChan ((ConnectionKey,SockAddr), Server.ConnectionEvent XML.Event) 990announceToxConnection :: TChan ((ConnectionKey,SockAddr), Connection.Tcp.ConnectionEvent XML.Event)
991 -> SockAddr 991 -> SockAddr
992 -> SockAddr 992 -> SockAddr
993 -> STM Bool 993 -> STM Bool
@@ -997,7 +997,7 @@ announceToxConnection :: TChan ((ConnectionKey,SockAddr), Server.ConnectionEvent
997announceToxConnection echan laddr saddr pingflag tsrc tsnk 997announceToxConnection echan laddr saddr pingflag tsrc tsnk
998 = atomically $ writeTChan echan 998 = atomically $ writeTChan echan
999 ( (PeerKey saddr, laddr ) 999 ( (PeerKey saddr, laddr )
1000 , Server.Connection pingflag xsrc xsnk ) 1000 , Connection.Tcp.Connection pingflag xsrc xsnk )
1001 where 1001 where
1002 xsrc = tsrc =$= toxToXmpp 1002 xsrc = tsrc =$= toxToXmpp
1003 xsnk = flushPassThrough xmppToTox =$= tsnk 1003 xsnk = flushPassThrough xmppToTox =$= tsnk