[Haskell-cafe] Connection helpers: for people interested in
bjorn at bringert.net
Tue Mar 4 10:31:41 EST 2008
On Fri, Feb 29, 2008 at 8:50 PM, Adam Langley <agl at imperialviolet.org> wrote:
> I generally find that I'm wrapping sockets in the same functions a lot
> and now I'm looking writings code which works with both Sockets and
> SSL connections. So I wrote a module, presumptuously called
> Network.Connection, although I'm not actually going to try and take
> that name (even in Hackage) unless I get a general agreement that this
> is a good thing.
> So, any comments on the interface, similar things that I should look at etc?
> I made the BaseConnection an ADT, rather than a class because I wanted
> to avoid hitting the monomorphism restriction in code. That might have
> been a mistake, I'm not sure yet.
> If it doesn't excite anyone enough to reply, I'll change the name and
> put it in Hackage, mostly as is. Then I'll tie HsOpenSSL into it so
> that SSL connections work transparently.
you may want to have a look at the socket abstraction used in the HTTP package:
It would be great to get HTTPS support going!
More information about the Haskell-Cafe