diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2019-08-06 01:54:29 +0200 |
---|---|---|
committer | Daniel Gröber (dxld) <dxld@darkboxed.org> | 2019-09-17 17:48:26 +0200 |
commit | c70e8076803bd29d7675ed493ebb1ca246891b34 (patch) | |
tree | 1f8d279b2b0edc90cce2df08496e62f2a9b86130 /tests | |
parent | fe57ad27c239a4eaf2401a9874182492fa9f3af9 (diff) |
Fix ProjLoc to source directory correspondence
We cannot always assume `takeDirectory cfg_file` will be the project source
directory!
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GhcSession.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs index 39680a6..a963ae4 100644 --- a/tests/GhcSession.hs +++ b/tests/GhcSession.hs @@ -465,7 +465,7 @@ newBuildProjSetup :: ProjSetup0 newBuildProjSetup = ProjSetupDescr "cabal-v2" $ Right $ Ex $ ProjSetupImpl { psiProjType = SCabal SCV2 , psiDistDir = \dir -> DistDirCabal SCV2 (dir </> "dist-newstyle") - , psiProjLoc = \_cabal_file projdir -> ProjLocV2File $ projdir </> "cabal.project" + , psiProjLoc = \_cabal_file projdir -> ProjLocV2File (projdir </> "cabal.project") projdir -- TODO: check if cabal.project is there and only use -- V2File then, also remove addCabalProject below so we -- cover both cases. |