diff --git a/.vimrc b/.vimrc index 8ee23227e..ecd2159e9 100644 --- a/.vimrc +++ b/.vimrc @@ -733,7 +733,7 @@ " Haskell post write lint and check with ghcmod " $ `cabal install ghcmod` if missing and ensure " ~/.cabal/bin is in your $PATH. - if !executable("ghcmod") + if !executable("ghcmod") && !executable("ghc-mod") autocmd BufWritePost *.hs GhcModCheckAndLintAsync endif @@ -1012,7 +1012,7 @@ " Haskell post write lint and check with ghcmod " $ `cabal install ghcmod` if missing and ensure " ~/.cabal/bin is in your $PATH. - if !executable("ghcmod") + if !executable("ghcmod") && !executable("ghc-mod") autocmd BufWritePost *.hs GhcModCheckAndLintAsync endif