You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using intero-nvim with ghci as backend provider (ghc 8.22). When I execute :interoTypeGeneric I get:
*Lib> :type-at "src/Lib.hs" 51 1 51 10 startApp
Couldn't guess that module name. Does it exist?
The correct invocation for ghci would be:
*Lib> :type-at Lib 51 1 51 10 startApp
Note that :InteroTypeInsert works because it does actually use that syntax. My guess is that the invocation for :InteroTypeAt should be the same as for InteroTypeInsert and this would fix the problem?
The text was updated successfully, but these errors were encountered:
After a lot bit of stuffing around, I was able to get something working (which means also cabal new-* now works as well). There's probably a better way by modifying the intero-neovim plugin, but this does what I need:
" Load up the current file in ghci (which magically works with cabal new-build) to - requires .ghci file (either project or global) to include `:set +c` ghc option
let g:intero_backend = { 'command': 'ghci', 'options': '-Wall -i ' . @%}
johnmendonca
added a commit
to johnmendonca/intero-neovim
that referenced
this issue
Jul 27, 2019
I am using intero-nvim with
ghci
as backend provider (ghc 8.22). When I execute:interoTypeGeneric
I get:The correct invocation for ghci would be:
Note that
:InteroTypeInsert
works because it does actually use that syntax. My guess is that the invocation for :InteroTypeAt should be the same as for InteroTypeInsert and this would fix the problem?The text was updated successfully, but these errors were encountered: