[darcs-users] Replace src/Printer.lhs with an external library?

Trent W. Buck trentbuck at gmail.com
Fri Mar 27 12:18:31 UTC 2009

On Fri, Mar 27, 2009 at 10:41:15AM +0100, Nicolas Pouillard wrote:
> Excerpts from trentbuck's message of Fri Mar 27 01:03:05 +0100 2009:
> > Ian Lynagh <igloo at earth.li> writes:
> > 
> > > * Text.PrettyPrint doesn't give you a way to print any sort of packed
> > >   string type without unpacking it. This is waiting on there being a
> > >   suitable unicode packed string type for it to use.
> > 
> > How serious an issue is this?  I guess most of the strings that this
> > module prints are quite short, so wouldn't the unpacking cost be
> > negligible?
> Hum are you sure? The hexadecimal representation of binary patches can be
> very long.

OK, so currently Printer.lhs is responsible for both writing stuff to
the terminal (hence the talk about colour support, for example), but
*also* for writing patch files to disk (hence Eric's caution)?

More information about the darcs-users mailing list