I want this! It should:
- Run hoogle with the right database according to the stack config in the directory in which it's run (so it's easily ran from a terminal or by IDEs).
- Automatically download the hoogle database from stackage.org e.g.
https://www.stackage.org/snapshot/lts-2.1/db.hoo for lts-2.1.
- Put it in some reasonable place like
~/.stack/hoogle-databases/lts-2.1.hoo.
- Or when running inside docker, use the hoogle database provided by the docker.
The last docker point means we probably need to sync up some things.
With this command I could provide some nice Emacs support with a live hoogle search buffer, and I'd basically never have to leave Emacs to open my browser to read docs again. This closes off two big pain points for me: (1) always having to open the browser and leave my editor environment, (2) needing an internet connection to view docs. This will also basically make my whole haskell-docs package redundant which I'll be able to deprecate in favor of stack.
Pinging @manny-fp and @snoyberg for feedback/opinions.
I want this! It should:
https://www.stackage.org/snapshot/lts-2.1/db.hoofor lts-2.1.~/.stack/hoogle-databases/lts-2.1.hoo.The last docker point means we probably need to sync up some things.
With this command I could provide some nice Emacs support with a live hoogle search buffer, and I'd basically never have to leave Emacs to open my browser to read docs again. This closes off two big pain points for me: (1) always having to open the browser and leave my editor environment, (2) needing an internet connection to view docs. This will also basically make my whole
haskell-docspackage redundant which I'll be able to deprecate in favor ofstack.Pinging @manny-fp and @snoyberg for feedback/opinions.