I have many haskell packages and I have enabled some flag to allow them generate haddock documents. Now these documents are under directories like /usr/share/doc/{package-name}-{version}/html/
.
Is there a tool to organize them? I want something like all packages by name page in hackage, so that local links to all these installed packages can be found in one page.
It'll be better if hoogle can be told to use these documents. By now my hoogle search resutls are all pointing to the corresponding pages in hackage.
Since my question has not yet been answered, I wrote a quick and dirty program to answer my first question:
By observing the structure of these haddock directories, I recognize haddock directories by testing:
html
.html
, there is a file with.haddock
as extension name.Run the program with
runghc <source-file> /usr/share/doc/ >document-nav.md
should generate a markdown file containing links to documents. Afterward just pipe it to pandoc or some other markdown2html converter and use the resulting HTML file in a browser to navigate through package documents.