sockets (ghc-5.04.1)

Peter Thiemann
06 Feb 2003 12:53:45 -0800


I only saw your answer today since it was filed in my
Haskell-mailing-list folder. Indeed, I've moved on to

import Network.Socket

and then duplicated part of my code. One thing that I found annoying
was that the Protocol argument of
is not well specified. The type Protocol is abstract, but is a member
of class Read. However, the Read syntax is nowhere specified. So I

do sock <- socket AF_UNIX Stream (read "0")

which works, but I'm sure that more informative strings work, too.