Allow command name resolution for GHCi commands with option `!`
Currently, GHCi can't perform command name resolution with option
! as follows:
ghci> :k Int Int :: * ghci> :k! Int unknown command ':k!' use :? for help.
:kind! command is useful, especially in recnet kind-rich GHC.
So I propose change to the prefix match implementation of GHCi as follows:
- Prefix match with full string including the option
- Prefix match without option suffix
- in addition, suffix match with option
I have a patch for this. I'll send MR.