ghc-mod only does check phase

This commit is contained in:
Nicolas Wu 2013-07-29 12:55:38 +01:00
parent f9302bbb32
commit 8745794ea5

View File

@ -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({