ghci: Don't rely on resolution of System.IO to base module
Previously we would hackily evaluate a textual code snippet to compute actions to disable I/O buffering and flush the stdout/stderr handles. This broke in a number of ways (#15336, #16563). Instead we now ship a module (`GHC.GHCi.Helpers`) with `base` containing the needed actions. We can then easily refer to these via `Orig` names.
Showing
- compiler/prelude/PrelNames.hs 2 additions, 1 deletioncompiler/prelude/PrelNames.hs
- ghc/GHCi/UI/Monad.hs 25 additions, 14 deletionsghc/GHCi/UI/Monad.hs
- libraries/base/GHC/GHCi/Helpers.hs 36 additions, 0 deletionslibraries/base/GHC/GHCi/Helpers.hs
- libraries/base/base.cabal 1 addition, 0 deletionslibraries/base/base.cabal
- testsuite/tests/ghci.debugger/scripts/break006.stdout 2 additions, 2 deletionstestsuite/tests/ghci.debugger/scripts/break006.stdout
- testsuite/tests/ghci.debugger/scripts/break013.stdout 1 addition, 1 deletiontestsuite/tests/ghci.debugger/scripts/break013.stdout
- testsuite/tests/ghci.debugger/scripts/hist001.stdout 1 addition, 1 deletiontestsuite/tests/ghci.debugger/scripts/hist001.stdout
- testsuite/tests/ghci.debugger/scripts/hist002.stdout 1 addition, 1 deletiontestsuite/tests/ghci.debugger/scripts/hist002.stdout
- testsuite/tests/ghci/scripts/T4175.stdout 4 additions, 4 deletionstestsuite/tests/ghci/scripts/T4175.stdout
- testsuite/tests/ghci/scripts/T7627.stdout 1 addition, 1 deletiontestsuite/tests/ghci/scripts/T7627.stdout
- testsuite/tests/ghci/scripts/T8469.stdout 2 additions, 2 deletionstestsuite/tests/ghci/scripts/T8469.stdout
- testsuite/tests/ghci/scripts/ghci011.stdout 2 additions, 2 deletionstestsuite/tests/ghci/scripts/ghci011.stdout
- testsuite/tests/ghci/scripts/ghci064.stdout 1 addition, 7 deletionstestsuite/tests/ghci/scripts/ghci064.stdout
Loading
Please register or sign in to comment