Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45e075d

Browse files
committed
Require ghc-mod >= v5.0.0 for ghc-mod split feature
1 parent eda244e commit 45e075d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

after/ftplugin/haskell/ghcmod.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if !exists('s:has_ghc_mod')
2727
finish
2828
endif
2929

30-
let s:required_version = [4, 1, 0]
30+
let s:required_version = [5, 0, 0]
3131
if !ghcmod#util#check_version(s:required_version)
3232
call ghcmod#util#print_error(printf('ghcmod: requires ghc-mod %s or higher', join(s:required_version, '.')))
3333
finish

autoload/ghcmod.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ endfunction "}}}
2424

2525
function! ghcmod#split(line, col, path, module) "{{{
2626
let l:tmpfile = tempname()
27+
" `ghc-mod split` is available since v5.0.0.
2728
let l:cmd = ghcmod#build_command(['split', a:path, a:module, a:line, a:col])
2829
let l:proc = s:plineopen2([{'args': l:cmd, 'fd': { 'stdin': '', 'stdout': l:tmpfile, 'stderr': '' }}])
2930
let [l:cond, l:status] = ghcmod#util#wait(l:proc)

0 commit comments

Comments
 (0)