Safety checks for ghc-mod.
Safety checks for ghc-mod.