tweek the build process so that type checking against ghc HEAD can hopefully work