-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix stack.yaml
(aeson-1.5.2.0
dependency).
#14
Conversation
Is it easy to see where the conflict is with GHC 8.6.5? @parsonsmatt what's our policy on GHC versions? I usually aim to support the last three majors, and I don't think 8.12 is due for a few more months. Though I can't see anyone being too upset right now that they couldn't use the latest Fourmolu with an older GHC. Perhaps I jumped the gun on requiring such a recent |
Hmmm. I'd like to support 8.6 - the "three release" rule was more appropriate before the new release cadence, and now I think a target of 2-3 years of GHCs make more sense. However, that rule is more for libraries IMO. The executable can be built with 8.10 and then used on an 8.6.5 codebase, right? Since it's a binary, I think I'm in favor of requiring a newer build of GHC than would be prudent for a library. |
I believe so. I'm not sure precisely what the guarantees are from |
Of course, thinking about it, Fourmolu is also a library, and HLS, for one, is using it as such... |
I'm not sure what is the nature of the problem. Perhaps it is not really the compiler version that matters. To be honest, I have little idea how stack's dependency resolving works. Trying to build with resolver
|
Finally looked into this. Being as ignorant of Stack as I am, I didn't even realise the We can build with 8.6.5 with Cabal (after 1de072e), so it could presumably be done with Stack after adding enough @parsonsmatt Am I missing anything? |
e3870d9
to
d3ac5be
Compare
As reported in #12, because of the
aeson-1.5.2.0
dependency, the project didn't build with using neither thestack.yaml
file in the repo, nor the one described in theREADME
. I am able to build it using thestack.yaml
as in this PR.However, this boosts the required GHC version to 8.8.3. Probably
lts-15.3
(GHC 8.8.2) would also work. I'm not sure what the best practice is.I didn't manage to build it using
stack
and GHC 8.6.5.