__color__	__group__	ticket	summary	component	milestone	type	created	_changetime	_description	_reporter
3	bos	5	getAddrInfo and addrFamily not in scope on Windows GHC 6.8	network		defect	2009-01-20T21:18:01Z+0000	2009-05-15T09:56:58Z+0100	"Originally reported here: http://hackage.haskell.org/trac/ghc/ticket/2726

----

import Network.Socket

... getAddrInfo

... addrFamily

-- 

gives me not in scope on Windows.  The same code works on Unix.

----

Looking at the code, these are only available if `IPV6_SOCKET_SUPPORT` is defined. I don't know more than that off the top of my head.
"	igloo
3	tibbe	7	Network.Socket.recv throws IOException on reading 0 bytes	network		defect	2009-04-05T08:56:06Z+0100	2009-05-22T10:48:31Z+0100	"Initially reported here: http://hackage.haskell.org/trac/ghc/ticket/3071

----

My man pages has the following to say about the return value of recv:

    These calls return the number of bytes received, or -1 if an error occurred.

    For TCP sockets, the return value 0 means the peer has closed its half side of the connection.

This means that it's absolutely fine to read 0 bytes when using e.g. UDP socket.

However, the Network.Socket.recv function always throws an exception upon reading 0 bytes regardless of the protocol family.
"	tibbe
