@@ -154,59 +154,57 @@ debugBracket msg f = do
154154 output $ " Finished in" <+> displayMilliseconds diff <> " :" <+> msg
155155 return x
156156
157- -- The following syles do not affect the colour of the background.
158-
159157-- | Style an 'AnsiDoc' as an error. Should be used sparingly, not to style
160158-- entire long messages. For example, it's used to style the "Error:"
161159-- label for an error message, not the entire message.
162160styleError :: AnsiDoc -> AnsiDoc
163- styleError = dullred
161+ styleError = dullred . ondullblack
164162
165163-- | Style an 'AnsiDoc' as a warning. Should be used sparingly, not to style
166164-- entire long messages. For example, it's used to style the "Warning:"
167165-- label for an error message, not the entire message.
168166styleWarning :: AnsiDoc -> AnsiDoc
169- styleWarning = yellow
167+ styleWarning = yellow . ondullblack
170168
171169-- | Style an 'AnsiDoc' in a way to emphasize that it is a particularly good
172170-- thing.
173171styleGood :: AnsiDoc -> AnsiDoc
174- styleGood = green
172+ styleGood = green . ondullblack
175173
176174-- | Style an 'AnsiDoc' as a shell command, i.e. when suggesting something
177175-- to the user that should be typed in directly as written.
178176styleShell :: AnsiDoc -> AnsiDoc
179- styleShell = magenta
177+ styleShell = magenta . ondullblack
180178
181179-- | Style an 'AnsiDoc' as a filename. See 'styleDir' for directories.
182180styleFile :: AnsiDoc -> AnsiDoc
183- styleFile = bold . white
181+ styleFile = bold . white . ondullblack
184182
185183-- | Style an 'AsciDoc' as a URL. For now using the same style as files.
186184styleUrl :: AnsiDoc -> AnsiDoc
187185styleUrl = styleFile
188186
189187-- | Style an 'AnsiDoc' as a directory name. See 'styleFile' for files.
190188styleDir :: AnsiDoc -> AnsiDoc
191- styleDir = bold . blue
189+ styleDir = bold . blue . ondullblack
192190
193191-- | Style used to highlight part of a recommended course of action.
194192styleRecommendation :: AnsiDoc -> AnsiDoc
195- styleRecommendation = bold . green
193+ styleRecommendation = bold . green . ondullblack
196194
197195-- | Style an 'AnsiDoc' in a way that emphasizes that it is related to
198196-- a current thing. For example, could be used when talking about the
199197-- current package we're processing when outputting the name of it.
200198styleCurrent :: AnsiDoc -> AnsiDoc
201- styleCurrent = yellow
199+ styleCurrent = yellow . ondullblack
202200
203201-- TODO: figure out how to describe this
204202styleTarget :: AnsiDoc -> AnsiDoc
205- styleTarget = cyan
203+ styleTarget = cyan . ondullblack
206204
207205-- | Style an 'AnsiDoc' as a module name
208206styleModule :: AnsiDoc -> AnsiDoc
209- styleModule = magenta -- TODO: what color should this be?
207+ styleModule = magenta . ondullblack -- TODO: what color should this be?
210208
211209instance Display PackageName where
212210 display = fromString . packageNameString
0 commit comments