Commit aab1fe26 authored by pcapriotti's avatar pcapriotti
Browse files

Deprecate old -package-conf flags.

parent 1197ed04
......@@ -1785,8 +1785,12 @@ package_flags = [
, Flag "user-package-db" (NoArg (addPkgConfRef UserPkgConf))
-- backwards compat with GHC<=7.4 :
, Flag "package-conf" (HasArg (addPkgConfRef . PkgConfFile))
, Flag "no-user-package-conf" (NoArg removeUserPkgConf)
, Flag "package-conf" (HasArg $ \path -> do
addPkgConfRef (PkgConfFile path)
deprecate "Use -package-db instead")
, Flag "no-user-package-conf" (NoArg $ do
removeUserPkgConf
deprecate "Use -no-user-package-db instead")
, Flag "package-name" (hasArg setPackageName)
, Flag "package-id" (HasArg exposePackageId)
......
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