Einar Karttunen writes:

 >> Well, I certainly _do_ need [a representation of network
 >> addresses in Haskell].

 > You can certainly get it:
 > getHost mySocketAddress niNumerichost
 > getServ mySocketAddress niNumericserv

Um, yes, but 'String' isn't a very good representation for
manipulating network addresses, IMHO.


 >> [URIs might be the answer]

 > But what URI should represent e.g. unix datagram sockets?

I don't think it's worth even trying to hide both stream-
and packet-oriented services behind the same API. These are
completely different things, treated them differently is
fine, IMHO.

Peter

_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to