diff --git a/cabal-install/Distribution/Client/Setup.hs b/cabal-install/Distribution/Client/Setup.hs index 3db3c79c13d..087bd23db84 100644 --- a/cabal-install/Distribution/Client/Setup.hs +++ b/cabal-install/Distribution/Client/Setup.hs @@ -166,6 +166,7 @@ globalCommand commands = CommandUI { , "update" , "install" , "fetch" + , "format" , "list" , "info" , "user-config" @@ -228,6 +229,7 @@ globalCommand commands = CommandUI { , addCmd "bench" , par , addCmd "check" + , addCmd "format" , addCmd "sdist" , addCmd "upload" , addCmd "report" diff --git a/cabal-install/Main.hs b/cabal-install/Main.hs index 5289e82820f..fb2a469227e 100644 --- a/cabal-install/Main.hs +++ b/cabal-install/Main.hs @@ -246,6 +246,7 @@ mainWorker args = topHandler $ ,execCommand `commandAddAction` execAction ,userConfigCommand `commandAddAction` userConfigAction ,cleanCommand `commandAddAction` cleanAction + ,formatCommand `commandAddAction` formatAction ,wrapperAction copyCommand copyVerbosity copyDistPref ,wrapperAction hscolourCommand @@ -256,8 +257,6 @@ mainWorker args = topHandler $ ,benchmarkCommand `commandAddAction` benchmarkAction ,hiddenCommand $ uninstallCommand `commandAddAction` uninstallAction - ,hiddenCommand $ - formatCommand `commandAddAction` formatAction ,hiddenCommand $ upgradeCommand `commandAddAction` upgradeAction ,hiddenCommand $ diff --git a/cabal-install/changelog b/cabal-install/changelog index ff0880fa206..4a039b7e5a9 100644 --- a/cabal-install/changelog +++ b/cabal-install/changelog @@ -9,6 +9,7 @@ * 'cabal init' now warns if the chosen package name is already registered in the source package index (#2436). * New 'cabal install' option: '--offline' (#2578). + * 'cabal format` command now list in '--help' message. (#2460) 1.22.0.0 Johan Tibell January 2015 * New command: user-config (#2159).