Skip to content

Commit f72eb1d

Browse files
committed
Revert "Use default flags rather than mempty."
See #4737 This reverts commit 1e90ae4.
1 parent 5a31fda commit f72eb1d

File tree

1 file changed

+2
-8
lines changed
  • cabal-install/Distribution/Client

1 file changed

+2
-8
lines changed

cabal-install/Distribution/Client/Setup.hs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,10 +1108,7 @@ upgradeCommand = configureCommand {
11081108
commandSynopsis = "(command disabled, use install instead)",
11091109
commandDescription = Nothing,
11101110
commandUsage = usageFlagsOrPackages "upgrade",
1111-
commandDefaultFlags = (commandDefaultFlags configureCommand,
1112-
defaultConfigExFlags,
1113-
defaultInstallFlags,
1114-
Cabal.defaultHaddockFlags),
1111+
commandDefaultFlags = (mempty, mempty, mempty, mempty),
11151112
commandOptions = commandOptions installCommand
11161113
}
11171114

@@ -1620,10 +1617,7 @@ installCommand = CommandUI {
16201617
++ " " ++ (map (const ' ') pname)
16211618
++ " "
16221619
++ " Change installation destination\n",
1623-
commandDefaultFlags = (commandDefaultFlags configureCommand,
1624-
defaultConfigExFlags,
1625-
defaultInstallFlags,
1626-
Cabal.defaultHaddockFlags),
1620+
commandDefaultFlags = (mempty, mempty, mempty, mempty),
16271621
commandOptions = \showOrParseArgs ->
16281622
liftOptions get1 set1
16291623
-- Note: [Hidden Flags]

0 commit comments

Comments
 (0)