We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ddae724 + f13cd3e commit b186d90Copy full SHA for b186d90
psc-publish/ErrorsWarnings.hs
@@ -256,10 +256,11 @@ renderWarnings =
256
where
257
collectWarnings patterns warns =
258
let boxes = mapMaybe (collectWarnings' warns) patterns
259
- in vcat
260
- [ para "Warnings:"
261
- , indented (vcat (intersperse spacer boxes))
262
- ]
+ result = vcat
+ [ para "Warnings:"
+ , indented (vcat (intersperse spacer boxes))
+ ]
263
+ in if null boxes then nullBox else result
264
265
getResolutionNotVersion (ResolutionNotVersion n) = Just n
266
getResolutionNotVersion _ = Nothing
0 commit comments