printf
Josef Svenningsson
josefs at cs.chalmers.se
Thu Nov 25 08:08:40 EST 2004
> -----Original Message-----
> From: libraries-bounces at haskell.org [mailto:libraries-bounces at haskell.org]
> On Behalf Of Graham Klyne
> Sent: den 25 november 2004 13:29
> To: Lennart Augustsson
> Cc: libraries at haskell.org
> 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:
http://www.dtek.chalmers.se/~d00bring/haskell-xml-rpc/
Cheers,
/Josef
More information about the Libraries
mailing list