diff --git a/syntax_checkers/haskell/ghc-mod.vim b/syntax_checkers/haskell/ghc-mod.vim index 9340c381..c1828312 100644 --- a/syntax_checkers/haskell/ghc-mod.vim +++ b/syntax_checkers/haskell/ghc-mod.vim @@ -35,20 +35,12 @@ function! SyntaxCheckers_haskell_ghc_mod_GetLocList() \ 'args': '--hlintOpt="--language=XmlSyntax"', \ 'filetype': 'haskell', \ 'subchecker': 'ghc_mod' }) - let loclist1 = SyntasticMake({ + + let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat }) - let makeprg = syntastic#makeprg#build({ - \ 'exe': 'ghc-mod lint', - \ 'args': '--hlintOpt="--language=XmlSyntax"', - \ 'filetype': 'haskell', - \ 'subchecker': 'ghc_mod' }) - let loclist2 = SyntasticMake({ - \ 'makeprg': makeprg, - \ 'errorformat': errorformat }) - - return loclist1 + loclist2 + return loclist endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({