summaryrefslogtreecommitdiff
path: root/ghc/GHCi/UI.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/GHCi/UI.hs')
-rw-r--r--ghc/GHCi/UI.hs4
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)