summaryrefslogtreecommitdiff
path: root/Presence/ConnectionKey.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-24 02:27:18 -0400
committerjoe <joe@jerkface.net>2018-06-24 03:10:43 -0400
commit55db1198b3da0c706f2b9f1ed9c8fd11fc4ae552 (patch)
treede035195ed188f8611da54e6e339d9124d2a5b3f /Presence/ConnectionKey.hs
parent3054de811f4ae7659dfc4dc338aab2c3d11b5c27 (diff)
XMPP: Type-checking on various uses of SockAddr.
Diffstat (limited to 'Presence/ConnectionKey.hs')
-rw-r--r--Presence/ConnectionKey.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Presence/ConnectionKey.hs b/Presence/ConnectionKey.hs
index 944f4f6f..f0180455 100644
--- a/Presence/ConnectionKey.hs
+++ b/Presence/ConnectionKey.hs
@@ -3,8 +3,9 @@ module ConnectionKey where
3import Network.Socket ( SockAddr(..) ) 3import Network.Socket ( SockAddr(..) )
4import SockAddr () 4import SockAddr ()
5 5
6data ConnectionKey 6newtype PeerAddress = PeerAddress SockAddr
7 = PeerKey { callBackAddress :: SockAddr } 7 deriving (Eq,Ord,Show)
8 | ClientKey { localAddress :: SockAddr } 8
9 deriving (Show, Ord, Eq) 9newtype ClientAddress = ClientAddress SockAddr
10 deriving (Eq,Ord,Show)
10 11