Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit 669e8ab

Browse files
committed
switch from using inplace conf to target conf for dep dbs
1 parent c18ecb8 commit 669e8ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hptool/src/Target.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ buildAction buildDir hpRel bc = do
7070
removeDirectoryRecursive depsDB
7171
localCommand' [] "ghc-pkg" ["init", depsDB]
7272
forM_ deps $ \d -> do
73-
let inplace = packageInplaceConf d
74-
hasInplace <- doesFileExist inplace
75-
when hasInplace $
73+
let targetconf = packageTargetConf d
74+
hasTargetconf <- doesFileExist targetconf
75+
when hasTargetconf $
7676
localCommand' [] "ghc-pkg"
7777
[ "register"
7878
, "--package-db=" ++ depsDB
7979
, "--verbose=" ++ show ghcPkgVerbosity
80-
, inplace
80+
, targetconf
8181
]
8282

8383
cabalVerbosity <- show . fromEnum <$> shakeToCabalVerbosity

0 commit comments

Comments
 (0)