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 example of use in autocomplete #64

Closed
ndr-brt opened this issue Oct 24, 2019 · 6 comments
Closed

Show example of use in autocomplete #64

ndr-brt opened this issue Oct 24, 2019 · 6 comments

Comments

@ndr-brt
Copy link
Collaborator

ndr-brt commented Oct 24, 2019

Maybe we can take informations from haddock docs:
http://hackage.haskell.org/package/tidal-1.4.3/docs/

or from the wiki:
https://tidalcycles.org/index.php

@yaxu
Copy link
Member

yaxu commented Oct 24, 2019

The 'hoogle' library is probably a good interface for retrieving haddock
It can integrate with ghci

@ndr-brt
Copy link
Collaborator Author

ndr-brt commented Oct 24, 2019

way better, so it will work also offline

@ndr-brt
Copy link
Collaborator Author

ndr-brt commented Oct 31, 2019

@yaxu I'm trying to get docs from hoogle but maybe I'm missing someting...
I'm playing with it from cli
with hoogle -i "tidal"
it prints:

package tidal
Not on Stackage, so not searched.
Pattern language for improvised music

but I'm not able to get a single function docs. e.g. both:
hoogle -i "tidal.Sound.Tidal.UI.rand"
hoogle -i "Sound.Tidal.UI.rand"
don't work

obviously, with:
hoogle -i "rand"
it gives me the docs of the basic rand function.

@ndr-brt
Copy link
Collaborator Author

ndr-brt commented Oct 31, 2019

I think the problem is that:
Not on Stackage, so not searched.

Hoogle from version 5 is based on stackage.org database, according to hoogle README, and Tidal is not on www.stackage.org

I saw some issues on tidal repository about stackage:
tidalcycles/Tidal#73
tidalcycles/Tidal#405

@yaxu
Copy link
Member

yaxu commented Oct 31, 2019 via email

@ndr-brt
Copy link
Collaborator Author

ndr-brt commented Oct 31, 2019

ok...
I made it working in local running:
hoogle generate tidal.

But there's a lot of blind spots... Maybe would be better to add a hoogle path configuration, to specify if it's installed as binary or used with stack, more pratical than integrating it with ghci.

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