Skip to content

update --build-depends help string #6697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions cabal-install/Distribution/Client/CmdRepl.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ defaultEnvFlags = EnvFlags
envOptions :: ShowOrParseArgs -> [OptionField EnvFlags]
envOptions _ =
[ option ['b'] ["build-depends"]
"Include an additional package in the environment presented to GHCi."
"Include additional packages in the environment presented to GHCi."
envPackages (\p flags -> flags { envPackages = p ++ envPackages flags })
(reqArg "DEPENDENCY" dependencyReadE (fmap prettyShow :: [Dependency] -> [String]))
(reqArg "DEPENDENCIES" dependenciesReadE (fmap prettyShow :: [Dependency] -> [String]))
, option [] ["no-transitive-deps"]
"Don't automatically include transitive dependencies of requested packages."
envIncludeTransitive (\p flags -> flags { envIncludeTransitive = p })
Expand All @@ -138,10 +138,10 @@ envOptions _ =
trueArg
]
where
dependencyReadE :: ReadE [Dependency]
dependencyReadE =
dependenciesReadE :: ReadE [Dependency]
dependenciesReadE =
parsecToReadE
("couldn't parse dependency: " ++)
("couldn't parse dependencies: " ++)
(parsecCommaList parsec)

replCommand :: CommandUI ( ConfigFlags, ConfigExFlags, InstallFlags
Expand Down Expand Up @@ -621,4 +621,3 @@ explanationSingleComponentLimitation =
"The reason for this limitation is that current versions of ghci do not "
++ "support loading multiple components as source. Load just one component "
++ "and when you make changes to a dependent component then quit and reload."