Allow command name resolution for GHCi commands with option `!` #17345
This commit allows command name resolution for GHCi commands with option `!` as follows: ghci> :k! Int Int :: * = Int This commit changes implementation as follows: Before: * Prefix match with full string including the option `!` (e.g. `k!`) After (this patch): * Prefix match without option suffix `!` (e.g. `k`) * in addition, suffix match with option `!` See also #8305 and #8113
Showing
- ghc/GHCi/UI.hs 14 additions, 5 deletionsghc/GHCi/UI.hs
- testsuite/tests/ghci/scripts/T17345.script 8 additions, 0 deletionstestsuite/tests/ghci/scripts/T17345.script
- testsuite/tests/ghci/scripts/T17345.stdout 3 additions, 0 deletionstestsuite/tests/ghci/scripts/T17345.stdout
- testsuite/tests/ghci/scripts/all.T 1 addition, 0 deletionstestsuite/tests/ghci/scripts/all.T
Loading
Please register or sign in to comment