Merge pull request #63 from roman/master

Improving Haskell support
This commit is contained in:
Martin Grenfell 2011-07-06 18:38:18 -07:00
commit 2e28783447

View File

@ -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,'