diff options
| author | Daniel Gröber <dxld@darkboxed.org> | 2019-08-21 00:08:54 +0200 | 
|---|---|---|
| committer | Daniel Gröber (dxld) <dxld@darkboxed.org> | 2019-09-17 17:48:26 +0200 | 
| commit | cec921f15cb8c326fe81f6e32aebec1516ca36e6 (patch) | |
| tree | e59a69b349efb3510bd3749bcbfe0d05a9c553f3 /lib/Distribution | |
| parent | 40184e55879be08d6e2bf38ccc86f3def5eb9f0e (diff) | |
Implement cabal v2 backpack unit workaround
See https://github.com/haskell/cabal/issues/6201 for details about the bug
Diffstat (limited to 'lib/Distribution')
| -rw-r--r-- | lib/Distribution/Helper.hs | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/lib/Distribution/Helper.hs b/lib/Distribution/Helper.hs index 55bfbf7..e46293d 100644 --- a/lib/Distribution/Helper.hs +++ b/lib/Distribution/Helper.hs @@ -508,7 +508,11 @@ buildProjectTarget qe mu stage = do            SCV2 -> do              targets <- return $ case mu of                Nothing -> ["all"] -              Just Unit{uImpl} -> uiV2Components uImpl +              Just Unit{uImpl} -> concat +                [ if uiV2OnlyDependencies uImpl +                    then ["--only-dependencies"] else [] +                , uiV2Components uImpl +                ]              case qeProjLoc of                ProjLocV2File {plCabalProjectFile} ->                  [ "--project-file="++plCabalProjectFile | 
