diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-04-27 15:33:18 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-05-29 05:05:55 -0400 |
commit | 10f48e2296a171dd3e8ad5df47dce67c25317b95 (patch) | |
tree | bd836c9f53d3b5278857bb4f08e40bb264362683 /ghc | |
parent | 0c0e18558fb068cc38d48a4faba00cce8755727a (diff) | |
download | haskell-10f48e2296a171dd3e8ad5df47dce67c25317b95.tar.gz |
ghci: Enable -fkeep-going by default
This also demotes the error message about -fkeep-going to a trace
message which matches the behaviour of other build systems (such as
cabal-install and nix) which don't print any message like this on a
failure.
We want to remove the stable module check in a future patch, which is an
approximation of `-fkeep-going`. At the moment this change shouldn't do
very much.
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/GHCi/UI.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs index 9b520c7e23..7176b1e596 100644 --- a/ghc/GHCi/UI.hs +++ b/ghc/GHCi/UI.hs @@ -481,6 +481,10 @@ interactiveUI config srcs maybe_exprs = do LangExt.MonomorphismRestriction xopt_unset) $ dflags GHC.setInteractiveDynFlags dflags' + _ <- GHC.setProgramDynFlags + -- Set Opt_KeepGoing so that :reload loads as much as + -- possible + (gopt_set dflags Opt_KeepGoing) -- Update the LogAction. Ensure we don't override the user's log action lest -- we break -ddump-json (#14078) |