hoogling GHC

Malcolm Wallace malcolm.wallace at me.com
Sat Mar 5 16:13:06 CET 2011


Ranjit,

> I'd like to build a hoogle database that indexes the GHC source.
> Can anyone point me to how I might do that? (Or better, to a  
> preexisting database?)


The author of Hoogle, Neil Mitchell, is currently on holiday, but I'm  
sure he will have some good advice for you when he returns.

In the meantime, the relevant portion of the Hoogle manual is here:
     http://www.haskell.org/haskellwiki/Hoogle#Database_Creation

and a blog post with instructions is here:
     http://neilmitchell.blogspot.com/2008/08/hoogle-database-generation.html

 > (I've noticed that "make haddock" generates a bunch of .txt files.
 > Is there some easy way to scour the directories and build a single
 > Hoogle database from them?)

I imagine some simple shell scripting would achieve that, starting with
     find haddockBaseDir -name *.txt -print | ...

Regards,
     Malcolm



More information about the Glasgow-haskell-users mailing list