sockets (ghc-5.04.1)
Peter Thiemann
thiemann@informatik.uni-freiburg.de
06 Feb 2003 12:53:45 -0800
Volker,
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
Network.Socket.socket
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
tried
do sock <- socket AF_UNIX Stream (read "0")
which works, but I'm sure that more informative strings work, too.
-Peter