Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support company-mode docs and source with haskell-mode backend #738

Closed
lukehoersten opened this issue Jun 23, 2015 · 6 comments
Closed

Support company-mode docs and source with haskell-mode backend #738

lukehoersten opened this issue Jun 23, 2015 · 6 comments

Comments

@lukehoersten
Copy link
Member

From the company-mode docs:

When the completion candidates are shown, press to display the documentation for the selected candidate, or C-w to see its source. Not all back-ends support this.

@lukehoersten
Copy link
Member Author

Ping @geraldus

@creichert
Copy link

company-ghc uses hoogle search --info <ident> to populate the doc buffer: https://github.com/iquiw/company-ghc/blob/master/company-ghc.el#L193.

auto-complete does support this feature with the F1 key as well. Different auto-complete sources utilize it in different ways but I like the haddock.

I pasted a screenshot in #215 and it would be nice to allow some options for what kind of docs are shown. I can help test auto-complete if needed.

@lukehoersten
Copy link
Member Author

I was under the impression company-ghc depended on ghc-mod which I don't use. I use haskell-process etc instead. Perhaps we need to rethink how all this ties together?

@lukehoersten
Copy link
Member Author

Looks like this is redundant with #215 - thank's @creichert

@creichert
Copy link

The doc buffer uses hoogle (although the rest of company-ghc does use ghc-mod).

My only point was this is something we could most likely support relatively easily in both auto-complete and company-ghc. I definitely want this feature too.

@lukehoersten
Copy link
Member Author

Understood. Good point.
On Tue, Jun 23, 2015 at 7:48 PM Christopher Reichert <
notifications@github.com> wrote:

The doc buffer uses hoogle (although the rest of company-ghc does use
ghc-mod).

My only point was this is something we could most likely support
relatively easily in both auto-complete and company-ghc. I definitely want
this feature too.


Reply to this email directly or view it on GitHub
#738 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants