Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala Hoogle equivalent?

Hoogle allows you to search many standard Haskell libraries by either function name, or by approximate type signature. I find it very useful. Is there anything like Hoogle for Scala? Search in ScalaDoc 2 only finds types and packages by name.

like image 610
Alexey Romanov Avatar asked May 20 '10 11:05

Alexey Romanov


3 Answers

There are plans to make the Hoogle interface work with multiple languages: http://code.google.com/p/ndmitchell/issues/detail?id=45

like image 88
Neil Mitchell Avatar answered Sep 21 '22 12:09

Neil Mitchell


It's a pity that it does not even have an index like javadoc. Hoogle is nicer, though.

I use a personal search engine from Google to search the Scaladocs.

A search provider (searching with site: http://www.scala-lang.org/docu/files/api) in Firefox is another way to search the docs.

Both do not work well for the Scala 2.8. release – it's not indexed well enough to be useful – and works not with all operators. For example a search for Cons :: returns only nonsense.

like image 43
Thomas Jung Avatar answered Sep 20 '22 12:09

Thomas Jung


Scaladoc for Scala 3 has Hoogle-like searches feature. You can try it out here.

It uses Inkuire search engine.

like image 24
KacperFKorban Avatar answered Sep 21 '22 12:09

KacperFKorban