eagletmt / ghcmod-vim

Happy Haskell programming on Vim, powered by ghc-mod
http://www.vim.org/scripts/script.php?script_id=4473
433 stars 59 forks source link

ghcmod-vim as syntastic checker #77

Open toonn opened 9 years ago

toonn commented 9 years ago

I prefer the output from ghcmod-vim to the default ghc_mod checker in syntastic, mostly because it displays the newlines properly and because it can run asynchronously. However I like the multilanguage capability of syntastic and its use of the location list instead of quickfix for example.

Is there a way to use ghcmod-vim as the checker and linter for syntastic?

Also, I prefer my errors to not have qualified names however setting let g:ghcmod_ghc_options = ['-dsuppress-module-prefixes'] doesn't do what I want. I'm not sure if this is even the right option to pass to ghc, ghc-mod check -g -fno-implicit-import-qualified doesn't achieve the desired behaviour either. This is not the default behaviour for ghc, it is for ghc-mod.

expipiplus1 commented 8 years ago

It's not a whole solution, but I've found NeoMake works very well with ghc-mod. It still munges everything into a single line, but at least it's asynchronous.

toonn commented 8 years ago

Alright, so that's an ok stop-gap measure. But I still think the single-line output is practically useless. Maybe ghcmod-vim can't solve this problem because it's a problem with syntastic?

expipiplus1 commented 8 years ago

yes, see scrooloose/syntastic#1334

I suppose ghcmod-vim could work around this by making each individual line from an error it's own proper error message, and hoping syntastic displays this properly, but it's highly unlikely this is going to happen.