diff --git a/SetupCompat.hs b/SetupCompat.hs index 1082532..b39475d 100644 --- a/SetupCompat.hs +++ b/SetupCompat.hs @@ -102,3 +102,12 @@ setComponentsConfigs setComponentsConfigs lbi cs = lbi { componentsConfigs = cs } #endif + + +#if __GLASGOW_HASKELL__ <= 704 + +componentBuildInfo :: Component -> BuildInfo +componentBuildInfo = + foldComponent libBuildInfo buildInfo testBuildInfo benchmarkBuildInfo + +#endif diff --git a/ghc-mod.cabal b/ghc-mod.cabal index 9b0eead..65ce6ff 100644 --- a/ghc-mod.cabal +++ b/ghc-mod.cabal @@ -26,6 +26,7 @@ Data-Files: Makefile ghc.el ghc-func.el ghc-doc.el ghc-comp.el ghc-check.el ghc-process.el ghc-command.el ghc-info.el ghc-ins-mod.el ghc-indent.el ghc-pkg.el ghc-rewrite.el Extra-Source-Files: ChangeLog + SetupCompat.hs test/data/*.cabal test/data/*.hs test/data/cabal.sandbox.config.in @@ -218,6 +219,8 @@ Test-Suite spec TestUtils Build-Depends: hspec + if impl(ghc == 7.4.*) + Build-Depends: executable-path X-Build-Depends-Like: CLibName