cabal install from a url doesn't work for libraries
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
`cabal install` with the `--lib` flag and a URL doesn't work, it tries to install an executable instead. This makes testing candidate releases more difficult.
**To Reproduce**
Steps to reproduce the behavior:
```
alex@pop-os:~$ cabal install --lib https://hackage.haskell.org/package/tidal-1.9.0/candidate/tidal-1.9.0.tar.gz
Downloading
https://hackage.haskell.org/package/tidal-1.9.0/candidate/tidal-1.9.0.tar.gz
Resolving dependencies...
cabal: Cannot build all the executables in the project because none of the
packages contain any executables. Check the .cabal files for the packages and
make sure that they properly declare the components that you expect.
```
**System information**
- Operating system - Linux PopOS
- `cabal 3.6.2.0`, `ghc 9.2.3`
Contributor guide
Assessment
This issue has not been assessed yet.