Haddock strings in .hi files

Malcolm Wallace malcolm.wallace at me.com
Thu Mar 20 20:30:20 UTC 2014

On 20 Mar 2014, at 16:41, Edward Kmett wrote:

> My observation was mostly that I run 'cabal install' it goes through all the modules building my .hi files, etc. Then I run cabal haddock and it spends all that time redoing the same work, just to go through and get at some information that we had right up until the moment we finished building.
> I'm not wedded to bolting the information into the .hi files being the solution, but the idea that we could avoid redoing that work is tantalizing.

One obvious solution could be for Haddock to learn how to read the existing .hi files, solely to read out the type signature of any exported entity that does not have an explicit signature in the source file.


More information about the ghc-devs mailing list