-
Notifications
You must be signed in to change notification settings - Fork 138
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
Small local generation? #284
Comments
I'm afraid the docs for executing Hoogle locally aren't great. In truth, I never do it, so I don't even know what the flags do! Any help with docs would be most welcome. What are the build times with The only way Hoogle indexes the types is by running Haddock to extract the documentation and types - you have to run Haddock I'm afraid or it's not going to work. You can configure Hoogle to work only with local packages (not sure how, but I think you can) - but does that help if Haddock is the bottleneck?
Don't really understand the question - can you give an example? |
Ok, that's helpful. I'll have a go at calling stuff directly. I suppose really I should look at trying to build less haddocks in that case. Sorry that was a bit badly phrased, it should have probably said
eg instead of just using it like The other thing I was on about there was the
The type (CmdLine/Generate) has |
Hi!
I'd recently had a go at using
stack hoogle
and was delighted to see that it works, however the build times with--rebuild
are really terrible and make it almost unusable, so I started digging a little bit to see what stack actually does when you call hoogle... which led me to commercialhaskell/stack#55 (comment).Even though that issue is pretty old, looking through the current source it seems about right. The bit that is really slow on the project I'm working on is building all the haddocks which I'm not really interested in anyway - I just want to use the type search, our code doesn't have api docs anyway really.
If I just run
stack exec -- hoogle generate --local --database=.stack-work/hoogle
then I get more tolerable build times of about 10 seconds, however it doesn't seem to actually be able to search any of our local types, it also seems to still be generating lots of stuff for dependencies.So a few (possibly stupid!) questions:
The tool is great and pretty much does everything you'd want it to, I just need to understand it a bit better to get the build times down a bit for our code.
Any help would be much appreciated :)
Cheers
Jonny
The text was updated successfully, but these errors were encountered: