Recently (after fixing my Haskell setup after upgrading to El Capitan), when I'm editing Haskell files for a moment in Vim, I get the following error:
"FPRef.hs" 13L, 316C written
syntastic: error: checker output:
You must run ghc-mod in the project directory as returned by `ghc-mod root`. Currently in: "/Users/mingtang/Code/FP15/src/FP15/Evaluator"but should be in "/Users/mingtang/Code/FP15".
syntastic: error: checker haskell/ghc_mod returned abnormal status 1
Press ENTER or type command to continue
Googling this error message leads to this GitHub issue: https://github.com/atom-haskell/haskell-ghc-mod/issues/50
Here is the version of my ghc-mod:
$ ghc-mod --version
ghc-mod version 5.4.0.0 compiled by GHC 7.8.3
I have vim-hdevtools
installed, and its last commit is in 2012, so I can't ask them for help.
Is there a way to solve this problem?