summaryrefslogtreecommitdiff
path: root/mk/config.mk.in
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-09-08 11:27:25 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-09-08 11:27:25 +0000
commit8bac0130e76221e5b20481d9e63b705d8c29b0de (patch)
tree949003c9476b10a5ad27887c4d8bbf6bc356adc5 /mk/config.mk.in
parent1a0edd6c064a24042fa20c7014d11716a2d90a60 (diff)
downloadhaskell-8bac0130e76221e5b20481d9e63b705d8c29b0de.tar.gz
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...
Diffstat (limited to 'mk/config.mk.in')
-rw-r--r--mk/config.mk.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 806908bee9..be48d99502 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -355,6 +355,15 @@ DLLized=@EnableWin32DLLs@
#
StripLibraries=NO
+# These are the URL patterns that Haddock uses to generate the "Source
+# File" links on each page.
+CorePackageSourceURL = http://darcs.haskell.org/ghc-6.6/packages/$(PACKAGE)/%{FILE}
+ExtraPackageSourceURL = http://darcs.haskell.org/packages/$(PACKAGE)/%{FILE}
+
+# These are the packages required to be present in order to bootstrap GHC
+# NB. must be synced with libraries/core-packages
+CorePackages = base Cabal haskell98 readline regex-base regex-compat \
+ regex-posix parsec stm template-haskell unix Win32
# ----------------------------------------------------------------------------
# Object-file splitting