-
Notifications
You must be signed in to change notification settings - Fork 175
Failing to build ghc-mod with stack #940
Comments
At the moment time is a bit of a scarse resources around ghc-mod, it seems to have fallen out of stackage since lts-6 (i.e. GHC 7.10). Personally I don't use Stack and thus don't pay it much mind unless someone complains and sends patches :) In principle ghc-mod should build with GHC 8.0.2 though so this is likely just a bounds issue. Maybe have a look at the Stackage Curator documentation if you want to help fixing this. I'd be happy to execute any required metadata revisions on Hackage if you can figure out what needs fixing. |
In the end I followed the advice in one of the other GitHub issues about GHC support and downgraded my resolver to |
Just to confirm, looks like ghc-mod is not buildable with stack in the last few LTS releases. I'd suggest removing mentions of stack for the time being, e.g. https://github.com/DanielG/ghc-mod/wiki/Installing#using-the-stack-tool can be confusing unless you know of this issue. |
I tried to understand the stackage curator thing but didn't get very far ... was confused that the only mention of Instead switched my
And now |
DISCLAIMER: I am totally science-dogging this. Aha I think I understand right now: we can't "add a temporary upper bound" in stackage for these packages, because they are super common packages (like
Those constraints are from
Further, |
I'm running:
I get the following error:
|
Forgive me if this issue turns out to be totally asanine; I'm new to this.
I created a new stack project, set the resolver to ghc 8.0.2, and tried to
stack build ghc-mod
. No luck - it failed to find a bunch of dependencies, and recommended I add them to extra-deps. I did so, tried again, and it told me to add more. And more. And more.So then I end up with this:
stack.yaml
I tried again and at this point there was a conflict around which version of
base
it wanted, and told me to try settingallow-newer: true
. I did, and this allowed about half the project to build before failing.I feel like I have to be missing something obvious here - what am I doing wrong?
The text was updated successfully, but these errors were encountered: