I use a number of Haskell plugins in my editor (Neovim), one of which is ghcmod-vim
, which works together with syntastic
to provide syntax checking as I write Haskell code.
At one point, I had installed GHC for Mac OS X as a temporary workaround for a number of issues in my build system configuration. These issues have since been fixed, so I removed the .app
bundle from my /Applications
and removed the lines it appended to my ~/.zshrc
.
For some reason, even now, when I write a Haskell file and save it to disk, I get an error in Neovim's message buffer:
"myfile.hs" 10L, 163C written
syntastic: error: checker output:
/Applications/ghc-7.8.4.app/Contents/lib/ghc-7.8.4/settings: openFile: does not exist (No such file or directory)
syntastic: error: checker haskell/ghc_mod returned abnormal status 1
The settings
file contains a list of key/value pairs with various build environment options which is usually stored alongside the ghc
binary, and which exists alongside the ghc
binary in my /usr/local/bin
, installed using Homebrew.
For some reason, either syntastic
or the ghc_mod
checker module is looking for the settings file in the wrong place. This is despite the fact that there are no references to this path in any of my Neovim or plugin config files, or in any environment variables.
How can I get ghc_mod
or syntastic
to look for the GHC settings file in the right place?
~/.cabal
— merely reinstallingghc-mod
did not resolve the error (possibly because HomeBrew introducedghc-7.10.3a
andghc-7.10.3b
, which are obviously not official GHC versions). – Raptorial