@@ -14,17 +14,17 @@ function! ghcmod#getHaskellIdentifier() "{{{
1414 return ll1.ll2
1515endfunction " }}}
1616
17- function ! ghcmod#info (fexp, path , module ) " {{{
18- let l: cmd = ghcmod#build_command ([" -b \n " , ' info' , a: path , a: module , a: fexp ])
17+ function ! ghcmod#info (fexp, path , ... ) " {{{
18+ let l: cmd = ghcmod#build_command ([" -b \n " , ' info' , a: path , a: fexp ])
1919 let l: output = ghcmod#system (l: cmd )
2020 " Remove trailing newlines to prevent empty lines
2121 let l: output = substitute (l: output , ' \n*$' , ' ' , ' ' )
2222 return s: remove_dummy_prefix (l: output )
2323endfunction " }}}
2424
25- function ! ghcmod#split (line , col , path , module ) " {{{
25+ function ! ghcmod#split (line , col , path , ... ) " {{{
2626 " `ghc-mod split` is available since v5.0.0.
27- let l: cmd = ghcmod#build_command ([' split' , a: path , a: module , a: line , a: col ])
27+ let l: cmd = ghcmod#build_command ([' split' , a: path , a: line , a: col ])
2828 let l: lines = s: system (' split' , l: cmd )
2929 if empty (l: lines )
3030 return []
@@ -36,18 +36,18 @@ function! ghcmod#split(line, col, path, module) "{{{
3636 return split (l: parsed [5 ], ' \n' )
3737endfunction " }}}
3838
39- function ! ghcmod#sig (line , col , path , module ) " {{{
39+ function ! ghcmod#sig (line , col , path , ... ) " {{{
4040 " `ghc-mod sig` is available since v5.0.0.
41- let l: cmd = ghcmod#build_command ([' sig' , a: path , a: module , a: line , a: col ])
41+ let l: cmd = ghcmod#build_command ([' sig' , a: path , a: line , a: col ])
4242 let l: lines = s: system (' sig' , l: cmd )
4343 if len (l: lines ) < 3
4444 return []
4545 endif
4646 return [l: lines [0 ], l: lines [2 :]]
4747endfunction " }}}
4848
49- function ! ghcmod#type (line , col , path , module ) " {{{
50- let l: cmd = ghcmod#build_command ([' type' , a: path , a: module , a: line , a: col ])
49+ function ! ghcmod#type (line , col , path , ... ) " {{{
50+ let l: cmd = ghcmod#build_command ([' type' , a: path , a: line , a: col ])
5151 let l: output = ghcmod#system (l: cmd )
5252 let l: types = []
5353 for l: line in split (l: output , ' \n' )
0 commit comments