diff options
author | Tom Smeding <tom@tomsmeding.com> | 2021-02-18 14:18:32 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2021-02-18 14:18:32 +0100 |
commit | 70f8330a21c335f36980f4b491d5b4e65a035c1c (patch) | |
tree | 17b06e26173e98bf5098c2e918d3ff3dffaf1d9d /Coolbal/Target | |
parent | e3ab394665c2c308cab6fffb41b3acc66d0ca989 (diff) |
Compatibility with more plan.json files
Diffstat (limited to 'Coolbal/Target')
-rw-r--r-- | Coolbal/Target/Executable.hs | 3 |
1 files changed, 2 insertions, 1 deletions
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 |