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

Hackage should calculate GHC compatibility #559

Open
gbaz opened this issue Oct 29, 2016 · 3 comments
Open

Hackage should calculate GHC compatibility #559

gbaz opened this issue Oct 29, 2016 · 3 comments

Comments

@gbaz
Copy link
Contributor

gbaz commented Oct 29, 2016

Given that we know the mapping of base bounds to ghc versions, we can probably compute a message for each package that indicates the likely GHC compatibility range. This should help clear up user confusion. Alternately or concomitantly, we could just have a more prominent link to the matrix.hackage server? (@hvr for comment on this).

@hvr
Copy link
Member

hvr commented Jul 1, 2018

we could just have a more prominent link to the matrix.hackage server?

that one we have already; we could make it more prominent though and I've already got some idea I need to mock-up...

@steve-chavez
Copy link

Can I pin the ghc version hackage chooses somehow? Recently, I had a failed build http://hackage.haskell.org/package/postgrest-0.5.0.0/reports/3 because I need the ghc version to be less than 8.4.2.

Limiting the base package will work?

@hvr
Copy link
Member

hvr commented Aug 27, 2018

@steve-chavez Well, as far as I can see from https://hackage.haskell.org/package/postgrest-0.5.0.0/dependencies has a severely underspecified dependency specification; you need to place version constraints on all your dependencies if you want your package to work properly as otherwise it will inevitably allow cabal to pick configurations which don't work properly (and if you're lucky those will result in compile failures; if you're unlucky it'll compile but behave incorrectly at runtime).

You can also take a look at https://matrix.hackage.haskell.org/package/postgrest which already shows the kind of build failures users of your package will likely run into.

As to your question for requesting the doc builder to use an older GHC version: currently the doc-builder supports only GHC 8.4.3; but constraining the allowed base versions is the current idiomatic way to signal by proxy which versions of GHC are supported.

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

No branches or pull requests

3 participants