commit
2e28783447
@ -14,15 +14,15 @@ if exists("loaded_haskell_syntax_checker")
|
|||||||
endif
|
endif
|
||||||
let loaded_haskell_syntax_checker = 1
|
let loaded_haskell_syntax_checker = 1
|
||||||
|
|
||||||
"bail if the user doesnt have ghc installed
|
"bail if the user doesnt have ghc-mod installed
|
||||||
if !executable("ghc")
|
if !executable("ghc-mod")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" As this calls ghc, it can take a few seconds... maybe hlint or something
|
|
||||||
" could do a good enough job?
|
|
||||||
function! SyntaxCheckers_haskell_GetLocList()
|
function! SyntaxCheckers_haskell_GetLocList()
|
||||||
let makeprg = 'ghc '.shellescape(expand('%')).' -e :q'
|
let makeprg =
|
||||||
|
\ 'ghc-mod check '. shellescape(expand('%')) .
|
||||||
|
\ ' && ghc-mod lint ' . shellescape(expand('%'))
|
||||||
let errorformat = '%-G\\s%#,%f:%l:%c:%m,%E%f:%l:%c:,%Z%m,'
|
let errorformat = '%-G\\s%#,%f:%l:%c:%m,%E%f:%l:%c:,%Z%m,'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user