aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper/Runtime/Compat.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/CabalHelper/Runtime/Compat.hs')
-rw-r--r--src/CabalHelper/Runtime/Compat.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CabalHelper/Runtime/Compat.hs b/src/CabalHelper/Runtime/Compat.hs
index 1673b7a..d3fe5e6 100644
--- a/src/CabalHelper/Runtime/Compat.hs
+++ b/src/CabalHelper/Runtime/Compat.hs
@@ -29,6 +29,7 @@ module CabalHelper.Runtime.Compat
, unUnqualComponentName'
, componentNameFromComponent
, componentOutDir
+ , internalPackageDBPath
) where
import System.FilePath
@@ -224,3 +225,9 @@ componentOutDir' lbi compName' =
let targetDir = (buildDir lbi) </> compName'
compDir = targetDir </> (compName' ++ "-tmp")
in compDir
+
+#if !CH_MIN_VERSION_Cabal(2,0,0)
+internalPackageDBPath :: LocalBuildInfo -> FilePath -> FilePath
+internalPackageDBPath lbi distPref =
+ distPref </> "package.conf.inplace"
+#endif