Commit c139ca65 authored by Alexis Williams's avatar Alexis Williams
Browse files

Improve migration info in deprecation warning

[ci skip]
parent f48bdb46
......@@ -112,10 +112,12 @@ deprecationNote :: String -> String
deprecationNote cmd =
"The " ++ cmd ++ " command is a part of the legacy v1 style of cabal usage.\n\n" ++
"Please switch to using either the new project style or the legacy v1-" ++ cmd ++ "\n" ++
"alias as new-style projects will become the default in the next version of\n" ++
"cabal-install. Please file a bug if you cannot replicate a working v1- use\n" ++
"case with the new-style commands.\n"
"Please switch to using either the new project style and the ++ new-" ++ cmd ++
"command or the legacy v1-" ++ cmd ++ "\nalias as new-style projects will\n" ++
"become the default in the next version of cabal-install. Please file a\n" ++
"bug if you cannot replicate a working v1- use case with the new-style commands.\n\n" ++
"For more information, see: https://wiki.haskell.org/Cabal/NewBuild\n"
legacyNote :: String -> String
legacyNote cmd =
......@@ -123,7 +125,9 @@ legacyNote cmd =
"It is a legacy feature and will be removed in a future release of cabal-install.\n" ++
"Please file a bug if you cannot replicate a working v1- use case with the new-style\n" ++
"commands.\n"
"commands.\n\n" ++
"For more information, see: https://wiki.haskell.org/Cabal/NewBuild\n"
toLegacyCmd :: (Bool -> CommandSpec (globals -> IO action)) -> [CommandSpec (globals -> IO action)]
toLegacyCmd mkSpec = [toDeprecated (mkSpec True), toLegacy (mkSpec False)]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment