diff options
Diffstat (limited to 'Presence/XMPPTypes.hs')
-rw-r--r-- | Presence/XMPPTypes.hs | 7 |
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 | ||
290 | newtype Thunk = Thunk { runThunk :: IO () } | ||
291 | |||
292 | instance Show Thunk where | ||
293 | show s = "thunk" | ||
294 | |||
290 | getNamesForPeer :: Peer -> IO [S.ByteString] | 295 | getNamesForPeer :: Peer -> IO [S.ByteString] |
291 | getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName | 296 | getNamesForPeer LocalHost = fmap ((:[]) . S.pack) getHostName |
292 | getNamesForPeer peer@(RemotePeer addr) = do | 297 | getNamesForPeer peer@(RemotePeer addr) = do |