[commit: hadrian] master: Add --quickjump to Haddock (#505) (2e0e8ae)

git at git.haskell.org git at git.haskell.org
Sat Feb 24 15:11:34 UTC 2018


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

On branch  : master
Link       : http://git.haskell.org/hadrian.git/commitdiff/2e0e8aeb27ac9ac7a1746350c2ef782d29bf7c89

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

commit 2e0e8aeb27ac9ac7a1746350c2ef782d29bf7c89
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Sun Feb 18 20:17:11 2018 +0000

    Add --quickjump to Haddock (#505)
    
    Also reorder other flags as in the Make build system
    
    See https://phabricator.haskell.org/D4365


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

2e0e8aeb27ac9ac7a1746350c2ef782d29bf7c89
 src/Settings/Builders/Haddock.hs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Settings/Builders/Haddock.hs b/src/Settings/Builders/Haddock.hs
index b381047..ed29012 100644
--- a/src/Settings/Builders/Haddock.hs
+++ b/src/Settings/Builders/Haddock.hs
@@ -39,13 +39,14 @@ haddockBuilderArgs = withHsPackage $ \cabalFile -> mconcat
         hVersion <- expr $ pkgVersion (unsafePkgCabalFile haddock) -- TODO: improve
         ghcOpts  <- haddockGhcArgs
         mconcat
-            [ arg $ "--odir=" ++ takeDirectory output
-            , arg "--verbosity=0"
+            [ arg "--verbosity=0"
+            , arg $ "--odir=" ++ takeDirectory output
             , arg "--no-tmp-comp-dir"
             , arg $ "--dump-interface=" ++ output
             , arg "--html"
             , arg "--hyperlinked-source"
             , arg "--hoogle"
+            , arg "--quickjump"
             , arg $ "--title=" ++ pkgName pkg ++ "-" ++ version
                     ++ ": " ++ synopsis
             , arg $ "--prologue=" ++ path -/- "haddock-prologue.txt"



More information about the ghc-commits mailing list