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 /tests | |
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 'tests')
-rw-r--r-- | tests/GhcSession.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs index 9fc7899..45fe82e 100644 --- a/tests/GhcSession.hs +++ b/tests/GhcSession.hs @@ -321,12 +321,11 @@ test modProgs (psdImpl -> ProjSetupImpl{..}) topdir tmpdir projdir cabal_file psiSdist progs topdir tmpdir + cs <- concat <$> runQuery (allUnits (Map.elems . uiComponents)) qe + -- TODO: Cludge until we can just build the unit dependencies - -- TODO: Move back under runQuery when we fixed backpack runQuery buildProject qe - cs <- concat <$> runQuery (allUnits (Map.elems . uiComponents)) qe - let pkgdir = takeDirectory cabal_file homedir <- getHomeDirectory let var_table = |