Only exit ghci in -e mode when :add command fails
Previously, when running `ghci -e ':add Sample.hs'` the process would exit with exit code 1 if the file exists and could be loaded. Fixes #24115
Showing
- ghc/GHCi/UI.hs 3 additions, 2 deletionsghc/GHCi/UI.hs
- testsuite/tests/ghci/should_run/T24115.hs 2 additions, 0 deletionstestsuite/tests/ghci/should_run/T24115.hs
- testsuite/tests/ghci/should_run/T24115.script 1 addition, 0 deletionstestsuite/tests/ghci/should_run/T24115.script
- testsuite/tests/ghci/should_run/all.T 3 additions, 0 deletionstestsuite/tests/ghci/should_run/all.T
Loading
Please register or sign in to comment