On Fri, Jun 23, 2000 at 11:51:56AM +0000, Steinitz, Dominic J wrote:
> How do I use sockets in Haskell? The ghc manual had some information
> in the users guide (6.7 Interfaces to C libraries) but the sentence
> which started tantalisingly
>
> "Various examples of networking Haskell code are provided in "
>
> had no second half.
>
> I'd prefer to use hugs during development but there didn't seem to be
> anything about sockets in the hugs documentation.
I make no guarantees as to the quality of the code, but an example of
a (very) rudimentary chat server written in Haskell is at the following
URL:
http://holomorphy.com/~wli/chat/
There isn't much there but the source and a few not-terribly helpful
comments. I'll be cleaning it up in the eventual future, of course, with
no guarantees on when that will be.
Cheers,
Bill