-
Notifications
You must be signed in to change notification settings - Fork 848
Stack cmd to produce docset(s) for https://kapeli.com/dash or http://zealdocs.org/ #491
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
Comments
If we can get this added to stackage-curator, then we can generate that output for all users with each build. What is the resulting artifact from the above command? Is it a single file, a directory, etc? |
stackage-curator is probably the best place for this (not stack). the output is a directory. |
Since this will be part of stackage-curator instead, closing. |
What about generating docsets for a local library ? Any plan to have docsets for all stackage packages ? I am using Zeal but unfortunately Haskell docsets are quite incomplete (and out-of-dated). Is Updated As a note, the best bet is probably to use https://github.com/philopon/haddocset for now |
Bump. What happened to this? Is there a corresponding stockage-curator issue somewhere? |
We currently have two docset generators:
|
Considering that stack has haddocks support, it seems consistent to also have something for these tools, if there's demand. We'd want to do it elsewhere than stackage-curator so that such lookup is available for private / local projects. |
You can actually have multiple docsets.
Here's basically the haddocset work flow (though incomplete):
After that I'm having two docsets, one which contains the stockage docs for the packages I depend on only. (Hence I won't be able to lookup any functionality that would be in stockage, but is not yet a dependency in the cabal file.) And another one which contains my local project and dependencies. I guess I could fake it, by creating a project that depended on all packages in stackage; but this seems like something that should be shared, instead of having everyone compile this for their own. |
When I try it (on nixos) I have got a puzzling error message:
but it works outside a project (the project is |
Added to the Wishlist: https://github.com/commercialhaskell/stack/wiki/Wishlist |
I would like to be able to quickly generate docsets for zeal (or dash.app) for a project. Offline hotkey search of APIs is handy.
Currently I use the cabal based
dash-haskell
with some command line foo:cabal list --installed|grep -e '^\*'|sed 's/\* //g'|parallel --no-notice dash-haskell -o ~/.local/share/Zeal/Zeal/docsets
... but it doesn't yet work with cabal 1.22 and I'm lazily relying on my .zsh_history to remember how to type that.
It would be handy to have stack do this sort of thing for me.
The text was updated successfully, but these errors were encountered: