Skip to content
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

Docs script example doesn't run with ghc-9.10.1 #10325

Open
philderbeast opened this issue Sep 6, 2024 · 1 comment · May be fixed by #10327
Open

Docs script example doesn't run with ghc-9.10.1 #10325

philderbeast opened this issue Sep 6, 2024 · 1 comment · May be fixed by #10327

Comments

@philderbeast
Copy link
Collaborator

What is wrong with the docs?

The script example doesn't run as-is with ghc-9.10.1:

image

$ chmod +x myscript.hs

$ ./myscript.hs
Warning: this is a debug build of cabal-install with assertions enabled.
Error: [Cabal-7107]
Could not resolve dependencies:
[__0] trying: fake-package-0 (user goal)
[__1] next goal: base (dependency of fake-package)
[__1] rejecting: base-4.20.0.0/installed-4014 (conflict: fake-package => base^>=4.19.0.0)
[__1] skipping: base; 4.20.0.1, 4.20.0.0 (has the same characteristics that caused the previous version to fail: excluded by constraint '^>=4.19.0.0' from 'fake-package')
[__1] rejecting: base; 4.19.1.0, 4.19.0.0, 4.18.2.1, 4.18.2.0, 4.18.1.0, 4.18.0.0, 4.17.2.1, 4.17.2.0, 4.17.1.0, 4.17.0.0, 4.16.4.0, 4.16.3.0, 4.16.2.0, 4.16.1.0, 4.16.0.0, 4.15.1.0, 4.15.0.0, 4.14.3.0, 4.14.2.0, 4.14.1.0, 4.14.0.0, 4.13.0.0, 4.12.0.0, 4.11.1.0, 4.11.0.0, 4.10.1.0, 4.10.0.0, 4.9.1.0, 4.9.0.0, 4.8.2.0, 4.8.1.0, 4.8.0.0, 4.7.0.2, 4.7.0.1, 4.7.0.0, 4.6.0.1, 4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0, 3.0.3.2, 3.0.3.1 (constraint from non-reinstallable package requires installed instance)
[__1] fail (backjumping, conflict set: base, fake-package)
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: base, fake-package
@ulysses4ever
Copy link
Collaborator

We should kill the explicit version of base in the example IMO.

philderbeast added a commit to cabalism/cabal that referenced this issue Sep 6, 2024
philderbeast added a commit to cabalism/cabal that referenced this issue Sep 9, 2024
philderbeast added a commit to cabalism/cabal that referenced this issue Sep 11, 2024
philderbeast added a commit to cabalism/cabal that referenced this issue Sep 11, 2024
philderbeast added a commit to cabalism/cabal that referenced this issue Sep 22, 2024
philderbeast added a commit to cabalism/cabal that referenced this issue Sep 22, 2024
Fixes haskell#10325

- Simplify note on relaxing version bounds
- Link to GHC release note included or boot packages
- May allow, not will allow
- Add a second link to footnote on boot packages

Co-Authored-By: Artem Pelenitsyn <a.pelenitsyn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants