diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2019-01-09 18:44:48 +0300 |
---|---|---|
committer | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2019-01-13 00:17:20 -0500 |
commit | a34ee61545930d569d0dbafb3a4a5db3a7a711e5 (patch) | |
tree | 940ad55163a9c12a97b15a529d7a2c57a8efef7a /testsuite/tests/ghci/scripts/T11606.stderr | |
parent | 448f0e7dd78a8d9404f1aa5e8522cc284360c06d (diff) | |
download | haskell-a34ee61545930d569d0dbafb3a4a5db3a7a711e5.tar.gz |
Refactor GHCi UI to fix #11606, #12091, #15721, #16096
Instead of parsing and executing a statement or declaration directly we
now parse them first and then execute in a separate step. This gives us
the flexibility to inspect the parsed declaration before execution.
Using this we now inspect parsed declarations, and if it's a single
declaration of form `x = y` we execute it as `let x = y` instead, fixing
a ton of problems caused by poor declaration support in GHCi.
To avoid any users of the modules I left `execStmt` and `runDecls`
unchanged and added `execStmt'` and `runDecls'` which work on parsed
statements/declarations.
Diffstat (limited to 'testsuite/tests/ghci/scripts/T11606.stderr')
-rw-r--r-- | testsuite/tests/ghci/scripts/T11606.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T11606.stderr b/testsuite/tests/ghci/scripts/T11606.stderr new file mode 100644 index 0000000000..bbfb7406c6 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T11606.stderr @@ -0,0 +1,12 @@ + +<interactive>:3:1: warning: [-Wname-shadowing (in -Wall)] + This binding for ‘x’ shadows the existing binding + defined at <interactive>:2:1 + +<interactive>:4:1: warning: [-Wname-shadowing (in -Wall)] + This binding for ‘x’ shadows the existing binding + defined at <interactive>:3:1 + +<interactive>:5:5: warning: [-Wname-shadowing (in -Wall)] + This binding for ‘x’ shadows the existing binding + defined at <interactive>:4:1 |