summaryrefslogtreecommitdiff
path: root/Presence/XMPPTypes.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Presence/XMPPTypes.hs')
-rw-r--r--Presence/XMPPTypes.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Presence/XMPPTypes.hs b/Presence/XMPPTypes.hs
index f6ffe66e..d9ebbce9 100644
--- a/Presence/XMPPTypes.hs
+++ b/Presence/XMPPTypes.hs
@@ -284,9 +284,14 @@ data OutBoundMessage = OutBoundPresence Presence
284 | Pong JID JID (Maybe Content) 284 | Pong JID JID (Maybe Content)
285 | Unsupported JID JID (Maybe Content) XML.Name 285 | Unsupported JID JID (Maybe Content) XML.Name
286 | Disconnect 286 | Disconnect
287 | ActivityBump RestrictedSocket 287 | ActivityBump Thunk
288 deriving Prelude.Show 288 deriving Prelude.Show
289 289
290newtype Thunk = Thunk { runThunk :: IO () }
291
292instance Show Thunk where
293 show s = "thunk"
294
290getNamesForPeer :: Peer -> IO [S.ByteString] 295getNamesForPeer :: Peer -> IO [S.ByteString]
291getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName 296getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName
292getNamesForPeer peer@(RemotePeer addr) = do 297getNamesForPeer peer@(RemotePeer addr) = do