diff options
Diffstat (limited to 'Presence/XMPP.hs')
-rw-r--r-- | Presence/XMPP.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Presence/XMPP.hs b/Presence/XMPP.hs index 9dfee14e..3d20a9b8 100644 --- a/Presence/XMPP.hs +++ b/Presence/XMPP.hs | |||
@@ -4,6 +4,7 @@ | |||
4 | {-# LANGUAGE ViewPatterns #-} | 4 | {-# LANGUAGE ViewPatterns #-} |
5 | module XMPP | 5 | module XMPP |
6 | ( module XMPPTypes | 6 | ( module XMPPTypes |
7 | , module SocketLike | ||
7 | , listenForXmppClients | 8 | , listenForXmppClients |
8 | , listenForRemotePeers | 9 | , listenForRemotePeers |
9 | , seekRemotePeers | 10 | , seekRemotePeers |
@@ -675,8 +676,6 @@ connect' addr port = do | |||
675 | -} | 676 | -} |
676 | let getport (SockAddrInet port _) = port | 677 | let getport (SockAddrInet port _) = port |
677 | getport (SockAddrInet6 port _ _ _) = port | 678 | getport (SockAddrInet6 port _ _ _) = port |
678 | let withPort (SockAddrInet _ a) port = SockAddrInet (toEnum port) a | ||
679 | withPort (SockAddrInet6 _ a b c) port = SockAddrInet6 (toEnum port) a b c | ||
680 | let doException (SomeException e) = do | 679 | let doException (SomeException e) = do |
681 | L.putStrLn $ "\nFailed to reach "<++> showPeer (RemotePeer addr) <++> " on port "<++>bshow port<++>": " <++> bshow e | 680 | L.putStrLn $ "\nFailed to reach "<++> showPeer (RemotePeer addr) <++> " on port "<++>bshow port<++>": " <++> bshow e |
682 | return Nothing | 681 | return Nothing |