Skip to content

Commit

Permalink
Allow no-comments, quiet, simple, minimal in init section of config (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses4ever committed Mar 9, 2023
1 parent fda8100 commit 1d3c743
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cabal-install/src/Distribution/Client/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"
]
Expand Down

0 comments on commit 1d3c743

Please sign in to comment.