aboutsummaryrefslogtreecommitdiff
path: root/tests/GhcSession.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2019-07-30 02:16:19 +0200
committerDaniel Gröber (dxld) <dxld@darkboxed.org>2019-09-17 17:48:26 +0200
commit8c9361e4ba6e2257f2bd9d354a56005318477ed6 (patch)
treedc62b3396268a11550669aa7f43933ca4e4899b7 /tests/GhcSession.hs
parent1b05d896884a8c02306f73f82658e7c6f3825fff (diff)
Support cabal-file not being in pkgdir with cabal-v1
Diffstat (limited to 'tests/GhcSession.hs')
-rw-r--r--tests/GhcSession.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs
index db06c87..871fddd 100644
--- a/tests/GhcSession.hs
+++ b/tests/GhcSession.hs
@@ -421,7 +421,7 @@ oldBuildProjSetup :: ProjSetup0
oldBuildProjSetup = ProjSetupDescr "cabal-v1" $ Right $ Ex $ ProjSetupImpl
{ psiProjType = SV1
, psiDistDir = \dir -> DistDirV1 (dir </> "dist")
- , psiProjLoc = \(CabalFile cf) _projdir -> ProjLocV1CabalFile cf
+ , psiProjLoc = \(CabalFile cf) projdir -> ProjLocV1CabalFile cf projdir
, psiConfigure = \progs dir ->
runWithCwd dir (cabalProgram progs) [ "configure" ]
, psiBuild = \progs dir ->