Sort out Hadrian colored output flags (fix #16397)
authorArtem Pelenitsyn <a.pelenitsyn@gmail.com>
Fri, 12 Jul 2019 20:41:34 +0000 (20:41 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Tue, 16 Jul 2019 06:40:08 +0000 (02:40 -0400)
commit5728d9faafe410d1e0c3a070bb8882721470b798
tree76a820ac448f620f78f7f5ed766aa33a7b78731e
parent1befd2c00f8a8fc1ca62ef18ca3028c58e35dabd
Sort out Hadrian colored output flags (fix #16397)

Hadrian used to have a separate flag --progress-colour to control
colored output during the build. After introduction of a Shake flag
with similar purpose Hadrian's flag became redundant. The commit removes
--progress-colour and switches to Shake's flag. The only difference
between the two is that Hadrian has special default mode when it tries
to determine if the terminal support colored output. The user can
override it using (Shake's) `--[no-]color`.
hadrian/README.md
hadrian/src/CommandLine.hs
hadrian/src/Hadrian/Utilities.hs
hadrian/src/Main.hs