diff --git a/autoload/intero/repl.vim b/autoload/intero/repl.vim index 44c68b4..ecf9ae0 100644 --- a/autoload/intero/repl.vim +++ b/autoload/intero/repl.vim @@ -85,15 +85,14 @@ function! intero#repl#type_at(generic, l1, c1, l2, c2) abort endif if s:ghci_supports_type_at_and_uses() + let l:module = intero#loc#detect_module() + if g:intero_backend_info.backend ==# 'intero' - let l:module = intero#loc#detect_module() " Fixup tabs for Stack let l:col1 = intero#util#getcol(a:l1, a:c1) let l:col2 = intero#util#getcol(a:l2, a:c2) else - " Relative path to current file, quoted. - let l:module = '"' . @% . '"' " Weird difference where regular GHCi needs the end column to be " beyond the last character of the selection, as opposed to how