Give spelling suggestions in :set
:set
could give the same suggestions as command-line flags:
$ ghci -XCUSKS
GHCi, version 9.6.1: https://www.haskell.org/ghc/ :? for help
ghc-9.6.1: unrecognised flag: -XCUSKS
did you mean one of:
-XCUSKs
Usage: For basic information, try the `--help' option.
$ ghci
GHCi, version 9.6.1: https://www.haskell.org/ghc/ :? for help
ghci> :set -XCUSKS
Some flags have not been recognized: -XCUSKS
ghci>