This is part of the DarcsLibraries agenda of stripping everything out of Darcs
that isn't about patches or repositories.
http://wiki.darcs.net/DarcsLibraries
A possible first choice might be Text.PrettyPrint.HughesPJ (pretty).
Please propose answers to:
1. How to ensure compatibility (i.e. that we're not subtly changing on disk
patch representation [I'm assuming we use the printers for that]
2. How to get colour
3. How to have fine-grained control being able to disable colour in certain
contexts, with environment variables for example or just by virtue of printing
to a file
One option might actually be to take *our* printer module and turn in into a
standalone one first and then slowly replace components.
I'm making Nicolas nosy on this, because I think he's commented on this before.
See also issue40 for some fanciness
|