From 1d3c7430d75997f85f9647933bcff074dd95a576 Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn Date: Thu, 9 Mar 2023 17:24:43 -0500 Subject: [PATCH] Allow no-comments, quiet, simple, minimal in init section of config (fix #8835) --- cabal-install/src/Distribution/Client/Config.hs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cabal-install/src/Distribution/Client/Config.hs b/cabal-install/src/Distribution/Client/Config.hs index 33793657282..cea5e56f407 100644 --- a/cabal-install/src/Distribution/Client/Config.hs +++ b/cabal-install/src/Distribution/Client/Config.hs @@ -922,7 +922,11 @@ commentSavedConfig = do IT.language = toFlag Haskell2010, IT.license = NoFlag, IT.sourceDirs = Flag [IT.defaultSourceDir], - IT.applicationDirs = Flag [IT.defaultApplicationDir] + IT.applicationDirs = Flag [IT.defaultApplicationDir], + IT.quiet = Flag False, + IT.noComments = Flag False, + IT.minimal = Flag False, + IT.simpleProject = Flag False }, savedInstallFlags = defaultInstallFlags, savedClientInstallFlags= defaultClientInstallFlags, @@ -1462,10 +1466,10 @@ initFlagsFields = [ field , name `notElem` exclusions ] where exclusions = - [ "author", "email", "quiet", "no-comments", "minimal", "overwrite" + [ "author", "email", "overwrite" , "package-dir", "packagedir", "package-name", "version", "homepage" , "synopsis", "category", "extra-source-file", "lib", "exe", "libandexe" - , "simple", "main-is", "expose-module", "exposed-modules", "extension" + , "main-is", "expose-module", "exposed-modules", "extension" , "dependency", "build-tool", "with-compiler" , "verbose" ]