From 70f8330a21c335f36980f4b491d5b4e65a035c1c Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 18 Feb 2021 14:18:32 +0100 Subject: Compatibility with more plan.json files --- Coolbal/Target/Executable.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Coolbal/Target') diff --git a/Coolbal/Target/Executable.hs b/Coolbal/Target/Executable.hs index 6358ab7..725b057 100644 --- a/Coolbal/Target/Executable.hs +++ b/Coolbal/Target/Executable.hs @@ -28,10 +28,11 @@ makeExeTarget exe plan , Just language <- defaultLanguage bi , True <- language `elem` knownLanguages , Just flags <- lookup GHC (perCompilerFlavorToList (options bi)) + , Just deps <- ppDepends planpkg = Just (ExeTarget { exeTargetName = unUnqualComponentName (exeName exe) , exeTargetPkgDbDir = currentHomeDirectory ++ "/.cabal/store/" ++ planCompiler plan ++ "/package.db" - , exeTargetDeps = ppDepends planpkg + , exeTargetDeps = deps , exeTargetLanguage = show language , exeTargetMain = modulePath exe , exeTargetSrcDirs = hsSourceDirs bi -- cgit v1.2.3-70-g09d2