We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30df86b commit 1411634Copy full SHA for 1411634
Network/Socket/Info.hsc
@@ -207,7 +207,9 @@ class GetAddrInfo t where
207
-- | Resolve a host or service name to one or more addresses.
208
-- The 'AddrInfo' values that this function returns contain 'SockAddr'
209
-- values that you can pass directly to 'connect' or
210
- -- 'bind'.
+ -- 'bind'. Instances for the hidden 'GetAddrInfo' class are lists and
211
+ -- 'NonEmpty' only. Use of 'NonEmpty' is recommended as getaddrinfo() never
212
+ -- returns an empty list.
213
--
214
-- This function is protocol independent. It can return both IPv4 and
215
-- IPv6 address information.
0 commit comments