From 47b2bf8611bba6ac5cfbfecde9d0f62505011232 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Tue, 17 Oct 2023 15:33:29 +1100 Subject: [PATCH] Rename module CmdOutdated.hs to Outdated.hs The `Cmd*,hs` naming scheme is usually reserved for v2 commands and this is a v1 command so renaming this to make way for a v2 version of this command. --- cabal-install/cabal-install.cabal | 2 +- cabal-install/src/Distribution/Client/Main.hs | 4 ++-- .../src/Distribution/Client/{CmdOutdated.hs => Outdated.hs} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename cabal-install/src/Distribution/Client/{CmdOutdated.hs => Outdated.hs} (99%) diff --git a/cabal-install/cabal-install.cabal b/cabal-install/cabal-install.cabal index d47f5494c2c..deba8082655 100644 --- a/cabal-install/cabal-install.cabal +++ b/cabal-install/cabal-install.cabal @@ -90,7 +90,6 @@ library Distribution.Client.CmdInstall.ClientInstallTargetSelector Distribution.Client.CmdLegacy Distribution.Client.CmdListBin - Distribution.Client.CmdOutdated Distribution.Client.CmdRepl Distribution.Client.CmdRun Distribution.Client.CmdSdist @@ -146,6 +145,7 @@ library Distribution.Client.ManpageFlags Distribution.Client.Nix Distribution.Client.NixStyleOptions + Distribution.Client.Outdated Distribution.Client.PackageHash Distribution.Client.ParseUtils Distribution.Client.ProjectBuilding diff --git a/cabal-install/src/Distribution/Client/Main.hs b/cabal-install/src/Distribution/Client/Main.hs index 6d8c0e187aa..d8e66c63b8a 100644 --- a/cabal-install/src/Distribution/Client/Main.hs +++ b/cabal-install/src/Distribution/Client/Main.hs @@ -127,12 +127,12 @@ import qualified Distribution.Client.CmdHaddockProject as CmdHaddockProject import qualified Distribution.Client.CmdInstall as CmdInstall import Distribution.Client.CmdLegacy import qualified Distribution.Client.CmdListBin as CmdListBin -import qualified Distribution.Client.CmdOutdated as CmdOutdated import qualified Distribution.Client.CmdRepl as CmdRepl import qualified Distribution.Client.CmdRun as CmdRun import qualified Distribution.Client.CmdSdist as CmdSdist import qualified Distribution.Client.CmdTest as CmdTest import qualified Distribution.Client.CmdUpdate as CmdUpdate +import qualified Distribution.Client.Outdated as Outdated import Distribution.Client.Check as Check (check) import Distribution.Client.Configure (configure, writeConfigFlags) @@ -393,7 +393,7 @@ mainWorker args = do , regularCmd initCommand initAction , regularCmd userConfigCommand userConfigAction , regularCmd genBoundsCommand genBoundsAction - , regularCmd CmdOutdated.outdatedCommand CmdOutdated.outdatedAction + , regularCmd Outdated.outdatedCommand Outdated.outdatedAction , wrapperCmd hscolourCommand hscolourVerbosity hscolourDistPref , hiddenCmd formatCommand formatAction , hiddenCmd actAsSetupCommand actAsSetupAction diff --git a/cabal-install/src/Distribution/Client/CmdOutdated.hs b/cabal-install/src/Distribution/Client/Outdated.hs similarity index 99% rename from cabal-install/src/Distribution/Client/CmdOutdated.hs rename to cabal-install/src/Distribution/Client/Outdated.hs index 7093ee7a0bf..49b264c4969 100644 --- a/cabal-install/src/Distribution/Client/CmdOutdated.hs +++ b/cabal-install/src/Distribution/Client/Outdated.hs @@ -13,7 +13,7 @@ -- -- Implementation of the 'outdated' command. Checks for outdated -- dependencies in the package description file or freeze file. -module Distribution.Client.CmdOutdated +module Distribution.Client.Outdated ( outdatedCommand , outdatedAction , ListOutdatedSettings (..)