Add --quickjump to Haddock (#505)
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Sun, 18 Feb 2018 20:17:11 +0000 (20:17 +0000)
committerGitHub <noreply@github.com>
Sun, 18 Feb 2018 20:17:11 +0000 (20:17 +0000)
Also reorder other flags as in the Make build system

See https://phabricator.haskell.org/D4365

src/Settings/Builders/Haddock.hs

index b381047..ed29012 100644 (file)
@@ -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"