From 544acba17dbc72ca84951c29d774e317914d8a0d Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Sat, 17 Oct 2015 20:48:39 +0300 Subject: [PATCH] ghc-mod versions 5.4.0 and later are no longer supported. --- plugin/syntastic.vim | 2 +- syntax_checkers/haskell/ghc-mod.vim | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index f63fb674..bd09f303 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.7.0-4' +let g:_SYNTASTIC_VERSION = '3.7.0-5' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/haskell/ghc-mod.vim b/syntax_checkers/haskell/ghc-mod.vim index 04462831..1d3c946b 100644 --- a/syntax_checkers/haskell/ghc-mod.vim +++ b/syntax_checkers/haskell/ghc-mod.vim @@ -51,7 +51,14 @@ function! SyntaxCheckers_haskell_ghc_mod_IsAvailable() dict let s:ghc_mod_new = -1 endif - return (s:ghc_mod_new >= 0) && (v:version >= 704 || s:ghc_mod_new) + " ghc-mod 5.4.0 wants to run in the root directory of the project; + " syntastic can't cope with the resulting complications + " + " References: + " https://hackage.haskell.org/package/ghc-mod-5.4.0.0/changelog + let s:ghc_mod_bailout = syntastic#util#versionIsAtLeast(parsed_ver, [5, 4]) + + return (s:ghc_mod_new >= 0) && (v:version >= 704 || s:ghc_mod_new) && !s:ghc_mod_bailout endfunction function! SyntaxCheckers_haskell_ghc_mod_GetLocList() dict