Missing some functions in Hoogle

Hi, I'm looking for a way to search Hoogle for Yesod related functions, say, renderRoute in Yesod.Routes.Class. First I confirmed the Hoogle site doesn't have it in index. http://www.haskell.org/hoogle/?hoogle=renderRoute Then, after installing hoogle via cabal, I built index over all packages that I have by "hoogle data -l -v all". Below is an excerpt of the output, looks like yesod-routes is imported to database, or indexed, correctly. However, local Hoogle still doesn't return any entry when I searched for "renderRoute". ---- "hoogle data -l -v all" output Starting yesod Starting yesod-auth Starting yesod-core Starting yesod-routes Skipped 1 warnings in yesod-routes Parse error 11:48: Parse error: family Converting yesod-routes... done Finished yesod-routes Skipped 4 warnings in yesod-core Parse error 683:77: Parse error in expression: _ Parse error 710:48: Parse error: family Parse error 803:1: Can't translate Parse error 806:1: Can't translate Converting yesod-core... done Finished yesod-core Now I'm wondering if I'm missing something, or Hoogle supports only a predefined set of functions. Any advise would be appreciated. -- Ken

On 21 May 2012 00:55, Ken Kawamoto
Now I'm wondering if I'm missing something, or Hoogle supports only a predefined set of functions. Any advise would be appreciated.
Hi. Hoogle [1] can search by type as well as by name. This currently only works for standard Haskell libraries. Hayhoo [2] is a string-based search only but also covers hackage [3]. After testing Hoogle cabal package [4], it can either generate databases for the current system or fetch the database from the internet. However, database search only covered standard libraries. Having search by type in hackage would be great though. Hope this helps. -- 1. http://www.haskell.org/hoogle/ 2. http://holumbus.fh-wedel.de/hayoo/hayoo.html 3. http://hackage.haskell.org/packages/hackage.html 4. http://hackage.haskell.org/package/hoogle Regards, Paulo

Thanks Paulo for your comment and sorry for late reply.
On Tue, May 22, 2012 at 11:09 PM, Paulo Pocinho
After testing Hoogle cabal package [4], it can either generate databases for the current system or fetch the database from the internet. However, database search only covered standard libraries.
What does this part mean?
With Hoogle package, you can generate databases for any library, but
the search works only for standard libraries?
Although this is consistent with what I experienced, it's a bit
surprising because this means generating database doesn't make any
sense, does it?
Hayhoo seems to suit what I want.
-- Ken
On Tue, May 22, 2012 at 11:09 PM, Paulo Pocinho
On 21 May 2012 00:55, Ken Kawamoto
wrote: (...) Now I'm wondering if I'm missing something, or Hoogle supports only a predefined set of functions. Any advise would be appreciated.
Hi.
Hoogle [1] can search by type as well as by name. This currently only works for standard Haskell libraries. Hayhoo [2] is a string-based search only but also covers hackage [3].
After testing Hoogle cabal package [4], it can either generate databases for the current system or fetch the database from the internet. However, database search only covered standard libraries. Having search by type in hackage would be great though.
Hope this helps.
-- 1. http://www.haskell.org/hoogle/ 2. http://holumbus.fh-wedel.de/hayoo/hayoo.html 3. http://hackage.haskell.org/packages/hackage.html 4. http://hackage.haskell.org/package/hoogle
Regards, Paulo

On 25 May 2012 15:04, Ken Kawamoto
Thanks Paulo for your comment and sorry for late reply.
On Tue, May 22, 2012 at 11:09 PM, Paulo Pocinho
wrote: After testing Hoogle cabal package [4], it can either generate databases for the current system or fetch the database from the internet. However, database search only covered standard libraries.
What does this part mean? With Hoogle package, you can generate databases for any library, but the search works only for standard libraries?
Although this is consistent with what I experienced, it's a bit surprising because this means generating database doesn't make any sense, does it?
Exactly. By default, hoogle did not index every library installed in my system. There is a flag for database creation with haddock [1]. However, I found it a bit complicated [2].
Hayhoo seems to suit what I want.
I must correct myself: it searches all packages from Hackage, including all function *and* type definitions [3]. Works like a charm. -- 1. http://www.haskell.org/haskellwiki/Hoogle#Database_Creation 2. http://neilmitchell.blogspot.pt/2008/08/hoogle-database-generation.html 3. http://holumbus.fh-wedel.de/hayoo/hayoo.html Regards, Paulo
participants (2)
-
Ken Kawamoto
-
Paulo Pocinho