Safety checks for ghc-mod.