Skip to content

Instantly share code, notes, and snippets.

@wwalker
Forked from DarinM223/Installing.md
Created July 16, 2021 06:26
Show Gist options
  • Save wwalker/507c94344cdc15a5faf2db464eaaa43b to your computer and use it in GitHub Desktop.
Save wwalker/507c94344cdc15a5faf2db464eaaa43b to your computer and use it in GitHub Desktop.
Installing GHC Mod

Installing GHC Mod

  1. Go to ~/.stack/global-project/stack.yaml and change the resolver: section to lts-10.3.

  2. Add:

- https://hackage.haskell.org/package/ghc-mod-5.9.0.0/candidate/ghc-mod-5.9.0.0.tar.gz
- cabal-helper-0.8.0.0
- extra-1.5.3
- monad-journal-0.7.2
- optparse-applicative-0.13.2.0
- either-4.4.1.1

to the extra-deps: section of the stack.yaml file.

  1. Run stack build ghc-mod
  2. Run stack install ghc-mod
  3. Make sure ~/.local/bin is in your path.
  4. Run ghc-mod version to verify the version of ghc-mod. If it still shows an older version, then look into other paths like ~/.cabal/bin that might overlap with the installed ghc-mod and remove the conflicting ghc-mod binary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment