parsonsmatt / intero-neovim

A neovim plugin for Intero, forked from ghcmod-vim
218 stars 28 forks source link

Provide a way to get fully qualified identifier name when applicable #125

Open stellarhoof opened 6 years ago

stellarhoof commented 6 years ago

This is extremely useful for example when using hoogle. It's cumbersome to manually figure out where an identifier came from and manually qualify the name so hoogle returns useful information with hoogle --info. I believe it's a fairly trivial hack to piggyback on loc-at which gives a parseable string we could use.

parsonsmatt commented 6 years ago

Before I or someone else respond the issues you're raising, I wanted to thank you for all the fantastic suggestions and issues! It's really appreciated :smile:

stellarhoof commented 6 years ago

You're very welcome. I might even tackle some of these.

stellarhoof commented 6 years ago

I've tried using loc-at, but it's too unreliable. Another approach is to parse the output of :browse, but it produces a fair amount of output.

It seems intero plans to support this at some point. Relevant issues: https://github.com/commercialhaskell/intero/issues/244 https://github.com/commercialhaskell/intero/issues/53 https://github.com/commercialhaskell/intero/issues/71

chrisdone commented 5 years ago

@stellarhoof Do you plan to work on this?

stellarhoof commented 5 years ago

@chrisdone No. I don't do haskell anymore.