Add source code links to Haddock docs
authorSimon Marlow <simonmar@microsoft.com>
Fri, 8 Sep 2006 11:27:25 +0000 (11:27 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 8 Sep 2006 11:27:25 +0000 (11:27 +0000)
commit8bac0130e76221e5b20481d9e63b705d8c29b0de
tree949003c9476b10a5ad27887c4d8bbf6bc356adc5
parent1a0edd6c064a24042fa20c7014d11716a2d90a60
Add source code links to Haddock docs

Right now we can only manage to add a source code link for the module,
but that's better than nothing.

I had to put the list of core packages in a Makefile variable,
$(CorePackages), so we'll have to be careful to keep this up to date.
(I could have slurped it out of libraries/core-packages with $(shell),
but that's ugly and really slow on Windows).

There are a couple of new tweakables: CorePackageSourceURL and
ExtraPackageSourceURL in config.mk.in, set these to the appropriate
patterns for generating source links.

(when we merge this patch onto the HEAD we'll have to tweak these
settings).

Unfortunately it still doesn't work for all the modules, because
modules compiled without -cpp don't get any #line directives.  More
hackery required...
mk/config.mk.in
mk/package.mk