haskell / haskell-mode

Emacs mode for Haskell
http://haskell.github.io/haskell-mode/
GNU General Public License v3.0
1.33k stars 342 forks source link

Better hayoo interface #326

Closed benma closed 10 years ago

benma commented 10 years ago

Hi there

I quickly cooked up an interface to hayoo which displays the query results in the buffer. It can be found here.

M-x hayoo-query [print] resulted in this screenshot. Hitting [RET] opens the browser at the correct hackage url. The list can be navigated in classic Emacs fashion (via n, p, and q to quit).

Would there be interest in getting this or something similar merged to haskell-mode?

purcell commented 10 years ago

Nice! This is a perfect candidate for a separately installable optional package. And note that in its current form, it couldn't go into haskell-mode because it relies on Emacs 24 features (tabulated-list-mode and maybe more). It would be a shame not to use tabulated-list just to bundle the code into haskell-mode.

So here's what I suggest: give it its own top-level repo, and submit a recipe to MELPA, or just ping me and I'll help create a recipe.

benma commented 10 years ago

I was just going to do that when I saw that helm-hayoo exists (you even forked it). I am not sure if putting my interface up on melpa is worthwhile when there already exists one.

I guess I might follow through, as I am not a big helm fan myself and like the quicker tabulated interface.

purcell commented 10 years ago

Yeah, I would personally prefer to use your version than the helm one, because I don't like having all of helm installed.

benma commented 10 years ago

Okay, I did it. Pull request in the melpa repo is incoming.