How do I get warnings out of GHC.typecheckModule with GHC 9.12?