When I try to install ghc-mod via stack I end up having these depencies conflicts
Error: While constructing the build plan, the following exceptions were enc
The issue is that ghc-mod does not support newer versions of GHC, I believe the last supported version is GHC 8.0. You can try changing your Stack resolver to lts-8.24 or nightly-2017-06-28 (see the snapshots listed on ghc-mod's Stackage page).
input command line:
stack install ghc-mod --resolver lts-8.24
it really helps.
Even easier, this worked for me:
stack install ghc-mod --resolver lts-8.24