From bd62ee5e2bc08a1e27bea0e3f2344e32a4ef42af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Catalinas=20Jim=C3=A9nez?= Date: Mon, 13 Jun 2016 21:14:17 +0100 Subject: [PATCH] Fix #97: Invoke ghc-mod with --silent flag This hides the warnings about if ghc-mod uses stack or cabal-install which otherwise confuses the Vim plugin parsing the output. --- autoload/ghcmod.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ghcmod.vim b/autoload/ghcmod.vim index 8a5ac7d..145c614 100644 --- a/autoload/ghcmod.vim +++ b/autoload/ghcmod.vim @@ -245,7 +245,7 @@ function! ghcmod#add_autogen_dir(path, cmd) "{{{ endfunction "}}} function! ghcmod#build_command(args) "{{{ - let l:cmd = ['ghc-mod'] + let l:cmd = ['ghc-mod', '--silent'] let l:dist_top = s:find_basedir() . '/dist' let l:sandboxes = split(glob(l:dist_top . '/dist-*', 1), '\n') @@ -341,7 +341,7 @@ function! s:find_basedir() "{{{ try lcd `=expand('%:p:h')` let b:ghcmod_basedir = - \ substitute(vimproc#system(['ghc-mod', 'root']), '\n*$', '', '') + \ substitute(vimproc#system(['ghc-mod', '--silent', 'root']), '\n*$', '', '') finally lcd `=l:dir` endtry