Skip to content

Commit 1411634

Browse files
committed
improving document
1 parent 30df86b commit 1411634

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Network/Socket/Info.hsc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ class GetAddrInfo t where
207207
-- | Resolve a host or service name to one or more addresses.
208208
-- The 'AddrInfo' values that this function returns contain 'SockAddr'
209209
-- values that you can pass directly to 'connect' or
210-
-- 'bind'.
210+
-- '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.
211213
--
212214
-- This function is protocol independent. It can return both IPv4 and
213215
-- IPv6 address information.

0 commit comments

Comments
 (0)