aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2018-12-16 17:44:37 +0100
committerDaniel Gröber <dxld@darkboxed.org>2019-01-22 03:06:51 +0100
commit94f01bb7dbb163b2a97aa548457f37c7fd1c88fe (patch)
tree40b15c3aefdeb2a31b55f163c3748e3b79b5331d /src
parent344753970fa7bc929b62ea8c25a77bddfdee9f15 (diff)
Fix cabal-file path for multi package v2 projects
Diffstat (limited to 'src')
-rw-r--r--src/CabalHelper/Compiletime/Cabal.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CabalHelper/Compiletime/Cabal.hs b/src/CabalHelper/Compiletime/Cabal.hs
index 9d0d00a..9c3e420 100644
--- a/src/CabalHelper/Compiletime/Cabal.hs
+++ b/src/CabalHelper/Compiletime/Cabal.hs
@@ -205,7 +205,7 @@ resolveCabalVersion (CabalHEAD ()) = do
findCabalFile :: FilePath -> IO FilePath
findCabalFile pkgdir = do
[cfile] <- filter isCabalFile <$> getDirectoryContents pkgdir
- return cfile
+ return $ pkgdir </> cfile
where
isCabalFile :: FilePath -> Bool
isCabalFile f = takeExtension' f == ".cabal"