Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix install instructions #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

apoco
Copy link

@apoco apoco commented Mar 1, 2025

The provided install instructions do not work.

$ cabal install parsec

Resolving dependencies...
Error: [Cabal-7127]
Cannot build the executables in the package parsec because it does not contain any executables. Check the .cabal file for the package and make sure that it properly declares the components that you expect.

It looks like at some point cabal made it so you've have to use a --lib option to install a library.

The provided install instructions do not work.

```
$ cabal install parsec

Resolving dependencies...
Error: [Cabal-7127]
Cannot build the executables in the package parsec because it does not contain any executables. Check the .cabal file for the package and make sure that it properly declares the components that you expect.
```

It looks like at some point cabal made it so you've have to use a `--lib` option to install a library.
Copy link
Collaborator

@phadej phadej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cabal install --lib is a 99.9% of time a wrong thing to do. The whole section should be rewritten, or just removed and replaced with

## Adding parsec as a dependency

Add 

```
  build-depends: parsec
```

to your package's `.cabal` file.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants