Control-y (yank) in GHCI acts like Control-z (suspend) on Mac
Summary
Control-y (yank) in GHCI acts like Control-z (suspend) on Mac, exiting to the shell.
Steps to reproduce
~$ ghci
GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help
Loaded package environment from /Users/simon/.ghc/aarch64-darwin-8.10.7/environments/default
Prelude>
<press Control-y>
[1]+ Stopped ghci
~$
Expected behavior
It should do nothing (or if I had previously "killed" some text with Control-k, it should paste that text). It should not suspend the process. Ie, it should do the normal readline yank operation, as it does at a shell prompt.
Environment
Tested with GHC 8.10.7, 9.0.2 and 9.2.1 in Terminal and iTerm2 on Mac OS 12.1 (but I have been seeing this forever). It does not happen on Linux.