Skip to content

Allow command name resolution for GHCi commands with option `!` (#17345)

Takenobu Tani requested to merge takenobu-hs/ghc:wip/ghci-new-completion into master

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 (closed) and #8113 (closed)

Edited by Takenobu Tani

Merge request reports