haskell / haskell/cabal

Can we move the `cabal install <library>` warning to the start instead of the end and/or just refuse to do it without some option?

Open
#11,114 2 comments 5 reactions 0 assignees View on GitHub
cabal-install: cmd/install re: install --lib re: user experience type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Currently you get a dubiously installed library followed by a warning that says you probably didn't want to do that and suggests `--lib`. IMO both are wrong: we should just not do it, and `--lib` shouldn't be suggested, instead point users to the manual which should mention `--lib`, warn about the consequences, and very strongly recommend using it with `--package-env`.

(This said, there are a _lot_ of users on Discord who are convinced that automatic package management is a Bad Thing and we should immediately dump it and go back to sandboxes as the only proper way to ever do package management. I personally think Python has warped people even worse than is immediately obvious.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.