ghc-mod
The ghc-mod
program allows some editors to do some extra things with Haskell source code.
Here’s how to install it.
The cabal
program is a package manager for Haskell. You need to update its list of packages.
1 | cabal update |
The ghc-mod
program depends on other things with depend on you having a program called happy
, so
we need to install that first.
1 | cabal install happy |
That program will be installed in ~/.cabal/bin
, so make sure you update your $PATH
environment to
point to this.
Finally, you should be able to install ghc-mod
:
1 | cabal install ghc-mod |