Use ghc-mod to check code rather than ghc itself.