Make downsweep return all errors per-module instead of throwing some
authorDaniel Gröber <dxld@darkboxed.org>
Sat, 25 May 2019 09:27:22 +0000 (11:27 +0200)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Thu, 30 May 2019 20:44:08 +0000 (16:44 -0400)
commit18d3f01d9abe2994b2b3d07b67ee9616c3553e16
treea7de4fa2dede37778bb82fe71b0650f356c9e6cf
parent76c86fca43a4e5449f69c5bc1623f4890ae918e2
Make downsweep return all errors per-module instead of throwing some

This enables API clients to handle such errors instead of immideately
crashing in the face of some kinds of user errors, which is arguably quite
bad UX.

Fixes #10887
compiler/main/DriverPipeline.hs
compiler/main/GhcMake.hs
compiler/main/HeaderInfo.hs
testsuite/tests/ghc-api/downsweep/PartialDownsweep.stderr
testsuite/tests/ghc-api/downsweep/all.T