Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Aid in function lookup in IDEs #541

Closed
bos opened this Issue · 4 comments

2 participants

@bos
Owner

(Imported from Trac #548, reported by guest on 2009-04-23)

Currently haskellmode builds an index of functions based on the docs installed on a system. This means a user has to install all docs for all packages.

HackageDB builds docs for all modules on the site, so it seems silly that I need to install the docs myself.

It would be cool, and probably useful for IDEs if a file was available from HackageDB that contained enough information to build that index, and point to docs on HackageDB. Then people with limited disk space, who are on always-online machines, can enjoy easy function lookup.

Even cooler would be if there was a web API (e.g. XML-RPC server) available that could be used to do the function lookups. For instance passing a function name would return a list of pairs of module name and URL.

@bos
Owner

(Imported comment by guest on 2009-04-23)

On second thought, could Hayoo! be used for this?

@bos
Owner

(Imported comment by guest on 2009-04-23)

If you open a Hoogle ticket (http://code.google.com/p/ndmitchell/issues/list) it might get resolved for you. Of course, you'd need to give a reasonably complete spec for what you want.

@bos
Owner

(Imported comment by claus on 2009-04-23)

To answer the haskellmode (for Vim) user: there is now support for both Hoogle and Hayoo! lookup, if you prefer that over local documentation.

However, the haskellmode index, currently extracted from local Haddock documentation, provides haskellmode with the information needed for other features as well (adding imports, or qualifiers, insert-mode completion, ..), so a local index will always be needed.

What has been discussed in the past is how such an index could be created once and for all, by cabal, without going via Haddock's doc-index.html or --hoogle output (one should be able to get package/module/type/:info from a plain package installation, even without docs installed, and documentation urls could be added to such an index as and if documentation gets installed).

Relevant tickets/threads:

In addition to a local index for each installation, easy access to the complete hackage index (as a text file in a stable format) would also be useful.

@tibbe
Owner

Closing as there's been no activity in years.

We're cleaning up the bug tracker to make it useful again and are thus closing bugs that haven't seen any activity in a long time. Please re-open (or file a new bug) if the problem reappears.

@tibbe tibbe closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.