diff --git a/src/Stack/PrettyPrint.hs b/src/Stack/PrettyPrint.hs index 2bbe94d52a..e883d06aaa 100644 --- a/src/Stack/PrettyPrint.hs +++ b/src/Stack/PrettyPrint.hs @@ -158,27 +158,27 @@ debugBracket msg f = do -- entire long messages. For example, it's used to style the "Error:" -- label for an error message, not the entire message. styleError :: AnsiDoc -> AnsiDoc -styleError = dullred +styleError = dullred . ondullblack -- | Style an 'AnsiDoc' as a warning. Should be used sparingly, not to style -- entire long messages. For example, it's used to style the "Warning:" -- label for an error message, not the entire message. styleWarning :: AnsiDoc -> AnsiDoc -styleWarning = yellow +styleWarning = yellow . ondullblack -- | Style an 'AnsiDoc' in a way to emphasize that it is a particularly good -- thing. styleGood :: AnsiDoc -> AnsiDoc -styleGood = green +styleGood = green . ondullblack -- | Style an 'AnsiDoc' as a shell command, i.e. when suggesting something -- to the user that should be typed in directly as written. styleShell :: AnsiDoc -> AnsiDoc -styleShell = magenta +styleShell = magenta . ondullblack -- | Style an 'AnsiDoc' as a filename. See 'styleDir' for directories. styleFile :: AnsiDoc -> AnsiDoc -styleFile = bold . white +styleFile = bold . white . ondullblack -- | Style an 'AsciDoc' as a URL. For now using the same style as files. styleUrl :: AnsiDoc -> AnsiDoc @@ -186,25 +186,25 @@ styleUrl = styleFile -- | Style an 'AnsiDoc' as a directory name. See 'styleFile' for files. styleDir :: AnsiDoc -> AnsiDoc -styleDir = bold . blue +styleDir = bold . blue . ondullblack -- | Style used to highlight part of a recommended course of action. styleRecommendation :: AnsiDoc -> AnsiDoc -styleRecommendation = bold . green +styleRecommendation = bold . green . ondullblack -- | Style an 'AnsiDoc' in a way that emphasizes that it is related to -- a current thing. For example, could be used when talking about the -- current package we're processing when outputting the name of it. styleCurrent :: AnsiDoc -> AnsiDoc -styleCurrent = yellow +styleCurrent = yellow . ondullblack -- TODO: figure out how to describe this styleTarget :: AnsiDoc -> AnsiDoc -styleTarget = cyan +styleTarget = cyan . ondullblack -- | Style an 'AnsiDoc' as a module name styleModule :: AnsiDoc -> AnsiDoc -styleModule = magenta -- TODO: what color should this be? +styleModule = magenta . ondullblack -- TODO: what color should this be? instance Display PackageName where display = fromString . packageNameString