Josef Svenningsson josefs at
Thu Nov 25 08:08:40 EST 2004

> -----Original Message-----
> From: libraries-bounces at [mailto:libraries-bounces at]
> On Behalf Of Graham Klyne
> Sent: den 25 november 2004 13:29
> To: Lennart Augustsson
> Cc: libraries at
> Subject: Re: printf
> At 09:05 25/11/04 +0100, Lennart Augustsson wrote:
> >My printf was a sprintf too.  I.e., the return value could be
> >eoither `IO a' or String.  Easy to implement, but probably
> >confusing. :)
> I noticed that.  I don't yet fully understand how it all works, but it did
> strike me as very neat.
The trick Lennart is using is indeed neat. But afaIct it is not known to
most Haskell hackers. It deserves better attention. Another library which
uses this kind of trick is Björn Bringert's XML-RPC library:



More information about the Libraries mailing list