Check return code of ghc-mod.