2 patches for repository http://darcs.net/screened:
patch 89f2ddd59c03d54ae656930206e02b80031c6731
Author: Ben Franksen <ben.franksen@online.de>
Date: Wed Jun 19 22:06:47 CEST 2019
* turn fancyPrinters into an IO action
This is what it actually is, via getPolicy. The unsafePerformIO was
perfunctory, since fancyPrinters (almost) always gets passed to a real IO
action that does the actual printing. The only exceptions are when we use it
for tracing and in the harness when converting our TestResult to HUnit or
QuickCheck. Consequently showDoc has been renamed unsafeRenderStringColored
(to discourage its use) and a function debugDoc added.
patch 0477caae257162b34f54bfba9a75f682e54375c3
Author: Ben Franksen <ben.franksen@online.de>
Date: Wed Jun 19 22:38:13 CEST 2019
* remove env var DARCS_DO_COLOR_LINES
If the user wants colored output we should go all the way and not require
them to set yet another configuration variable to achieve that. On the other
hand, if they can't see colors or don't have actual colors in their terminal
and thus set DARCS_ALTERNATIVE_COLOR then we should not color hunk lines
since we have no alternative rendering for them.
Attachments
|