Skip to content

Commit e699d5a

Browse files
committed
Fix for displaying the type with plain GHCi backend
parsonsmatt#133
1 parent 9bb546e commit e699d5a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

autoload/intero/repl.vim

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,13 @@ function! intero#repl#type_at(generic, l1, c1, l2, c2) abort
9595
endif
9696

9797
if s:ghci_supports_type_at_and_uses()
98-
if g:intero_backend_info.backend ==# 'intero'
99-
let l:module = intero#loc#detect_module()
98+
let l:module = intero#loc#detect_module()
10099

100+
if g:intero_backend_info.backend ==# 'intero'
101101
" Fixup tabs for Stack
102102
let l:col1 = intero#util#getcol(a:l1, a:c1)
103103
let l:col2 = intero#util#getcol(a:l2, a:c2)
104104
else
105-
" Relative path to current file, quoted.
106-
let l:module = '"' . @% . '"'
107-
108105
" Weird difference where regular GHCi needs the end column to be
109106
" beyond the last character of the selection, as opposed to how
110107
" Intero wants it:

0 commit comments

Comments
 (0)