[Haskell] Re: Existing Haskell IPv6 Code

Peter Simons simons at cryp.to
Thu May 12 12:47:21 EDT 2005


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



More information about the Haskell mailing list