language: fix: accidentally removed project database (#598)

This adds the local project database back to the checked package
database. It was accidentally removed in an earlier commit.
This commit is contained in:
Robin Krom 2019-04-18 16:27:54 +02:00 committed by mergify[bot]
parent f39b7a5d3f
commit d4b87897be

View File

@ -104,7 +104,7 @@ mkOptions opts@Options {..} = do
baseDir <- getBaseDir
mapM_ checkDirExists $ optImportPath <> optPackageDbs
let defaultPkgDb = baseDir </> "package-database"
pkgDbs <- filterM Dir.doesDirectoryExist [defaultPkgDb]
pkgDbs <- filterM Dir.doesDirectoryExist [defaultPkgDb, projectPackageDatabase]
pure opts {optPackageDbs = map (</> versionSuffix) $ pkgDbs ++ optPackageDbs}
where checkDirExists f =
Dir.doesDirectoryExist f >>= \ok ->