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

Use Hackage only instead of Stackage #5685

Closed
pxeger opened this issue Mar 3, 2022 · 4 comments
Closed

Use Hackage only instead of Stackage #5685

pxeger opened this issue Mar 3, 2022 · 4 comments

Comments

@pxeger
Copy link

pxeger commented Mar 3, 2022

$ stack --version
Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4

Installed with ghcup.

I want to use GHC 9.2 with Stack. However, Stackage doesn't yet support this version, even on nightly (see commercialhaskell/stackage#6318). But Stack itself seems to support 9.2, so I'd like to know if it's possible to use stack without using Stackage at all, so I can just install packages directly from Hackage. Is this currently possible, or does this issue need to be a feature request?

pxeger added a commit to attempt-this-online/languages that referenced this issue Mar 3, 2022
this necessitated a downgrade to GHC 9.0 (from 9.2)

commercialhaskell/stack#5685
@hasufell
Copy link
Contributor

hasufell commented Mar 3, 2022

stack doesn't have a dependency resolver, so using hackage directly will likely not work well, because package bounds won't be respected.

@pxeger
Copy link
Author

pxeger commented Mar 3, 2022

Ah, I see. I guess I should just use cabal on its own then?

@pxeger pxeger closed this as completed Mar 3, 2022
@hasufell
Copy link
Contributor

hasufell commented Mar 3, 2022

Ah, I see. I guess I should just use cabal on its own then?

If you care about hackage support, that's the best option. Otherwise try stackage nightly: https://www.stackage.org/nightly

@mbj
Copy link
Contributor

mbj commented Mar 3, 2022

You can overwrite the GHC in a per stack.yaml basis via: compiler: ghc-9.2.1 and force stack to use any GHC with any snapshot.

I've got some success on nightly already.

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

No branches or pull requests

3 participants