[commit: ghc] ghc-8.0: Make it easy to get hyperlinked sources (efafad0)

git at git.haskell.org git at git.haskell.org
Tue Apr 19 08:27:46 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/efafad0112f128d0c03472356b48dea39322293a/ghc

>---------------------------------------------------------------

commit efafad0112f128d0c03472356b48dea39322293a
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Mon Apr 18 06:29:37 2016 -0700

    Make it easy to get hyperlinked sources
    
    The version of `haddock` that ghc has as a submodule has an option
    for generating linkified sources. I don't think it hurts to have this
    and they are great for exploring the codebase.
    
    I'd be nice if harbormaster or travis published them somewhere, but
    I don't know how to do that yet.
    
    Test Plan:
    uncomment, run `make` and look at the
    nicely linkified sources in `compiler/stage2/doc/html/ghc/`
    
    Reviewers: hvr, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D2119
    
    (cherry picked from commit 3dac53fa3ede70e86ddb6f40e1e96feb61301754)


>---------------------------------------------------------------

efafad0112f128d0c03472356b48dea39322293a
 mk/build.mk.sample | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 196becb..eed749c 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -86,5 +86,9 @@ endif
 # (other sometimes useful configure-options: `--with-gmp-{includes,libraries}`)
 #libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree-gmp
 
+# Enable pretty hyperlinked sources
+#HADDOCK_DOCS = YES
+#EXTRA_HADDOCK_OPTS += --hyperlinked-source
+
 # Don't strip debug and other unneeded symbols from libraries and executables.
 STRIP_CMD = :



More information about the ghc-commits mailing list