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

Show type info in annotation #22

Open
user471 opened this issue Oct 5, 2015 · 6 comments
Open

Show type info in annotation #22

user471 opened this issue Oct 5, 2015 · 6 comments

Comments

@user471
Copy link

user471 commented Oct 5, 2015

Is there any reason to not showing type info in completion annotation? Similar to company-ghc-show-module but company-ghc-show-type-info
It could be very useful.

@iquiw
Copy link
Owner

iquiw commented Oct 5, 2015

Previously, it was inefficient since it is necessary to call one ghc-mod command per a type.

Now since v1.0.0, all types in a module can be got by one ghc-mod browse.
So it is possible but I am afraid some types are too long.

I will consider to add an option for it.

@user471
Copy link
Author

user471 commented Oct 5, 2015

So it is possible but I am afraid some types are too long.

I don't think it would be a problem for big monitors.
If someone will have a problem you could add an option something like type-info-max-length.

@iquiw
Copy link
Owner

iquiw commented Oct 8, 2015

Committed initial attempt to custom-annotation branch.

@user471
Copy link
Author

user471 commented Oct 8, 2015

@iquiw Should it already work? It isn't working for me.

@iquiw
Copy link
Owner

iquiw commented Oct 13, 2015

Yes, it should.
Note that it is not on MELPA, but in custom-annotation branch on Github.

There may be some work and incompatible changes before merging it to master.

@user471
Copy link
Author

user471 commented Oct 13, 2015

I just downloaded https://raw.githubusercontent.com/iquiw/company-ghc/custom-annotation/company-ghc.el and replaced my local version.

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