commit
2e28783447
@ -14,15 +14,15 @@ if exists("loaded_haskell_syntax_checker")
|
||||
endif
|
||||
let loaded_haskell_syntax_checker = 1
|
||||
|
||||
"bail if the user doesnt have ghc installed
|
||||
if !executable("ghc")
|
||||
"bail if the user doesnt have ghc-mod installed
|
||||
if !executable("ghc-mod")
|
||||
finish
|
||||
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()
|
||||
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,'
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user