From 6cc1e8b4d778886e3c9110a76882048b0cf87940 Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Thu, 18 May 2023 23:18:04 +0100 Subject: [PATCH] Fix colors in console reporter, resolves #298 --- core/Test/Tasty/Ingredients/ConsoleReporter.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/Test/Tasty/Ingredients/ConsoleReporter.hs b/core/Test/Tasty/Ingredients/ConsoleReporter.hs index 67b9bfc9..82f48524 100644 --- a/core/Test/Tasty/Ingredients/ConsoleReporter.hs +++ b/core/Test/Tasty/Ingredients/ConsoleReporter.hs @@ -709,7 +709,9 @@ ok, fail, skipped, infoOk, infoFail :: (?colors :: Bool) => String -> IO () fail = output failFormat ok = output okFormat skipped = output skippedFormat -infoOk = output infoOkFormat +-- Just default foreground color for 'infoOk'; do not apply 'infoOkFormat', +-- because terminal's background could be white itself. See #298. +infoOk = putStr infoFail = output infoFailFormat output