Closed freeman42x closed 5 years ago
Unfortunately ghc-mod doesn't currently work with anything above GHC 8.2 and likely never will. We're currently working on moving efforts to haskell-ide-engine instead. Sorry about that.
@DanielG I was aware of that. But then why are broken version been published both to cabal and stackage?
The version on Hackage is just fine, note the
rejecting: base-4.11.1.0/installed-4.1... (conflict: ghc-mod =>
base<4.10 && >=4.6.0.1)
in your cabal install
output above. base-4.11
is the base package that came with GHC 8.4 and the constraint on ghc-mod correctly states base<4.10
which corresponds to GHC 8.2 which the package on Hackage doesn't support.
I think the build errors with stack are a red herring because ghc-mod isn't even in Stackage anymore and in that case Stack seems to fall back to ignoring all the dependency bounds for some reason, cf the WARNING: Ignoring out of range dependency (allow-newer enabled)
stuff in the stack install
output.
@DanielG Thank you for the clarification. I hope they will be useful for someone running in the same issues later.
Installing fails both with cabal and with stack.
cabal install error:
stack install error: