Skip to content
Snippets Groups Projects
Commit 4e6128b1 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

Resolve #6013: Warn if packages and optional-packages are empty

parent 009c42d3
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,10 @@ establishProjectBaseContext verbosity cliConfig currentCommand = do
verbosity cabalDirLayout
projectConfig
-- https://github.com/haskell/cabal/issues/6013
when (null (projectPackages projectConfig) && null (projectPackagesOptional projectConfig)) $
warn verbosity "There are no packages or optional-packages in the project"
return ProjectBaseContext {
distDirLayout,
cabalDirLayout,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment