John Goerzen jgoerzen at
Thu Nov 25 02:00:30 EST 2004

On 2004-11-24, Simon Marlow <simonmar at> wrote:
> On 23 November 2004 20:34, Lennart Augustsson wrote:
> I'd like to pull this in, or something like it.  IMHO, the lack of
> static type safety is outweighed by the shear convenience, and it's too
> small to provide as a separate library.
> It'd be nice to have 
>   hPrintf :: (PrintfType a) -> Handle -> String -> a

Don't forget sprintf, though I haven't yet studied this code enough to
figure out how to do it with this model.

sprintf could and should be a pure function that can be executed outside
the IO monad.  Quite useful for, say, internals of a string generation

-- John

More information about the Libraries mailing list