Permalink
Browse files

Merge pull request #99 from jimenezrick/master

Fix #97: Invoke ghc-mod with --silent flag
  • Loading branch information...
eagletmt committed Jun 19, 2016
2 parents 815616e + bd62ee5 commit 1d192d13d68ab59f9f46497a0909bf24a7b7dfff
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/ghcmod.vim
View
@@ -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

0 comments on commit 1d192d1

Please sign in to comment.