git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1118 from hdgarrood/psc-publish-warnings
b186d90Phil Freeman
psc-publish/ErrorsWarnings.hs+5−4
@@ -256,10 +256,11 @@ renderWarnings =
256 where
256 where
257 collectWarnings patterns warns =
257 collectWarnings patterns warns =
258 let boxes = mapMaybe (collectWarnings' warns) patterns
258 let boxes = mapMaybe (collectWarnings' warns) patterns
259− in vcat
259+ result = vcat
260− [ para "Warnings:"
260+ [ para "Warnings:"
261− , indented (vcat (intersperse spacer boxes))
261+ , indented (vcat (intersperse spacer boxes))
262− ]
262+ ]
263+ in if null boxes then nullBox else result
263
264
264 getResolutionNotVersion (ResolutionNotVersion n) = Just n
265 getResolutionNotVersion (ResolutionNotVersion n) = Just n
265 getResolutionNotVersion _ = Nothing
266 getResolutionNotVersion _ = Nothing