summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-22 22:16:55 -0400
committerjoe <joe@jerkface.net>2018-06-22 22:16:55 -0400
commit9d8a4436a2d894030a51bba2b773901ffdc4788d (patch)
treef583e9c4a98c7085eaca33f9a9d39dad58a70351 /src/Network
parentf5f854c8144dc29086928a94b2ea86cfae0d0557 (diff)
Quieted some warnings.
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/QueryResponse.hs2
-rw-r--r--src/Network/Tox/DHT/Transport.hs12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Network/QueryResponse.hs b/src/Network/QueryResponse.hs
index d612ac05..e4c73cd8 100644
--- a/src/Network/QueryResponse.hs
+++ b/src/Network/QueryResponse.hs
@@ -505,7 +505,7 @@ sockAddrFamily :: SockAddr -> Family
505sockAddrFamily (SockAddrInet _ _ ) = AF_INET 505sockAddrFamily (SockAddrInet _ _ ) = AF_INET
506sockAddrFamily (SockAddrInet6 _ _ _ _) = AF_INET6 506sockAddrFamily (SockAddrInet6 _ _ _ _) = AF_INET6
507sockAddrFamily (SockAddrUnix _ ) = AF_UNIX 507sockAddrFamily (SockAddrUnix _ ) = AF_UNIX
508sockAddrFamily (SockAddrCan _ ) = AF_CAN 508sockAddrFamily _ = AF_CAN -- SockAddrCan constructor deprecated
509 509
510-- | Packets with an empty payload may trigger EOF exception. 510-- | Packets with an empty payload may trigger EOF exception.
511-- 'udpTransport' uses this function to avoid throwing in that 511-- 'udpTransport' uses this function to avoid throwing in that
diff --git a/src/Network/Tox/DHT/Transport.hs b/src/Network/Tox/DHT/Transport.hs
index c6fe121c..0c69ea8b 100644
--- a/src/Network/Tox/DHT/Transport.hs
+++ b/src/Network/Tox/DHT/Transport.hs
@@ -69,12 +69,12 @@ data DHTMessage (f :: * -> *)
69 | DHTLanDiscovery NodeId 69 | DHTLanDiscovery NodeId
70 70
71deriving instance ( Show (f (Cookie Encrypted)) 71deriving instance ( Show (f (Cookie Encrypted))
72 , Show (Asymm (f Ping)) 72 , Show (f Ping)
73 , Show (Asymm (f Pong)) 73 , Show (f Pong)
74 , Show (Asymm (f GetNodes)) 74 , Show (f GetNodes)
75 , Show (Asymm (f SendNodes)) 75 , Show (f SendNodes)
76 , Show (Asymm (f CookieRequest)) 76 , Show (f CookieRequest)
77 , Show (Asymm (f DHTRequest)) 77 , Show (f DHTRequest)
78 ) => Show (DHTMessage f) 78 ) => Show (DHTMessage f)
79 79
80mapMessage :: forall f b. (forall a. Nonce24 -> f a -> b) -> DHTMessage f -> Maybe b 80mapMessage :: forall f b. (forall a. Nonce24 -> f a -> b) -> DHTMessage f -> Maybe b